/*
Theme Name: Nihongo Corporate
Theme URI: https://example.com/
Author: Studio
Author URI: https://example.com/
Description: 企業サイト向けの日本語テーマ。磨りガラス半透明、グラデーション・角丸なし。
Version: 1.0.0
Text Domain: nihongo
*/

html, body { height: 100%; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Arial, sans-serif; color: #111; background: #f8f8f8; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }

.site-header { border-bottom: 1px solid #e5e7eb; background: #fff; }
.site-header .logo-wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; }
.site-header .title { font-weight: 700; font-size: 20px; margin-left: 12px; }
.site-header .header-right { display: flex; align-items: center; gap: 16px; }
.site-header .header-right .phone-cta .number { font-size: 18px; }
.site-header .header-right .phone-cta .hours { font-size: 12px; }
.site-header .nav-wrap { border-top: 1px solid #e5e7eb; }
.site-header .nav-wrap { background: #fff; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 10px 0; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.site-header nav li { margin: 0; }
.site-header nav a { padding: 8px 10px; display: inline-block; color: #111; }

.site-header #menu-menu-1-container.is-fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #fff; border-bottom: 1px solid #e5e7eb; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 200ms ease; }
.admin-bar .site-header #menu-menu-1-container.is-fixed { top: 32px; }
@media (max-width: 781px) { .admin-bar .site-header #menu-menu-1-container.is-fixed { top: 46px; } }
.site-header #menu-menu-1-container.is-hidden { transform: translateY(-110%); }
.site-header #menu-menu-1-container .menu { justify-content: center; }


.badges { display: flex; align-items: center; gap: 8px; }
.badge { display: inline-block; padding: 4px 8px; background: #eef6ee; color: #264d26; border: 1px solid #cfe3cf; }

.header-phone-box { display: inline-flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid #dfe8e2; border-radius: 12px; }
.header-phone-box .badge-circle { width: 56px; height: 56px; border-radius: 50%; background: #f18c74; color: #fff; display: flex; align-items: center; justify-content: center; }
.header-phone-box .badge-circle span { display: inline-block; font-weight: 700; font-size: 12px; line-height: 1.1; text-align: center; white-space: pre-line; }
.header-phone-box .info { display: flex; flex-direction: column; gap: 4px; }
.header-phone-box .line { display: flex; align-items: center; gap: 8px; }
.header-phone-box .phone-icon { font-size: 18px; }
.header-phone-box .number { font-size: 24px; font-weight: 800; color: #111; letter-spacing: 0.02em; }
.header-phone-box .hours { font-size: 13px; color: #555; }

.site-header nav li:not(:last-child) { border-right: 1px solid #e5e7eb; }
.site-header nav li:not(:last-child) a { margin-right: 12px; }

.hero { width: 100%; overflow: hidden; }
.hero-grid { display: grid; gap: 12px; height: 100%; padding: 0; grid-auto-rows: 1fr; align-items: stretch; }
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 400ms ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; padding: 20px; }
.hero-grid.areas-count-1 { grid-template-columns: 1fr; align-content: center; justify-items: stretch; }
.hero-grid.areas-count-2 { grid-template-columns: 1fr 1fr; }
.hero-grid.areas-count-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.hero-grid.areas-count-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

.hero-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; height: 100%; text-align: center; background: rgba(255,255,255,0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(17,17,17,0.08); }
.hero-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-item .text, .hero-item .btn { position: relative; z-index: 2; }
.hero-item .text { font-size: 18px; line-height: 1.6; text-align: center; }
.hero-item .btn { display: inline-block; padding: 10px 16px; background: #111; color: #fff; border: 1px solid #111; }
.hero-item .title { font-size: 22px; font-weight: 700; }
.hero-item.align-left { align-items: flex-start; }
.hero-item.align-right { align-items: flex-end; }
.hero-item.align-left .title, .hero-item.align-left .text { text-align: left; }
.hero-item.align-right .title, .hero-item.align-right .text { text-align: right; }
.hero-item.valign-top { justify-content: flex-start; }
.hero-item.valign-middle { justify-content: center; }
.hero-item.valign-bottom { justify-content: flex-end; }
.hero-item .btn-sm { padding: 8px 12px; font-size: 14px; }
.hero-item .btn-lg { padding: 12px 20px; font-size: 18px; }
.hero-overlay .hero-item img { position: static; width: auto; height: auto; max-width: 100%; }

.shortcode-full { width: 100%; }
.shortcode-full .container { padding: 24px 0; }

.section { padding: 48px 0; }
.section-title { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.section-subtitle { font-size: 18px; color: #555; margin-bottom: 24px; }
.section-title.center { text-align: center; }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-radius: 10px; overflow: hidden; }
.post-card .thumb { display: block; position: relative; }
.post-card .thumb img { width: 100%; height: 220px; object-fit: cover; display: block; }
.post-card .content { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.post-card .post-meta { font-size: 12px; color: #666; }
.post-card .post-title { font-size: 20px; font-weight: 700; margin: 0; }
.post-card .post-title a { color: #111; }
.post-card .post-excerpt { font-size: 14px; color: #444; }
.post-card .read-more { align-self: flex-start; }
.pagination { margin-top: 24px; display: flex; justify-content: center; }

.company .container { display: grid; grid-template-columns: 58fr 42fr; gap: 32px; align-items: center; justify-items: stretch; padding: 0 0 0 20px !important; }
.company .text { background: transparent; border: none; padding: 0; }
.company .kicker { color: var(--color-primary); font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.company .heading { font-size: 42px; font-weight: 800; line-height: 1.5; letter-spacing: 0.02em; margin-bottom: 16px; color: #222; }
.company .desc { color: #555; font-size: 16px; line-height: 1.9; max-width: 60ch; }
.company .image-wrap { position: relative; }
.company .image-wrap img { width: 100%; height: auto; display: block; position: relative; z-index: 2;}

.fourgrid-section { background: transparent; border: none; }
.fourgrid-section .container { background: #2fa36a; border: none; color: #fff; padding: 50px 0; font-family: 'Noto Sans JP', sans-serif; }
.fourgrid-section .container .section-title { text-align: center; color: #fff; font-size: 28px; margin: 20px 0 10px; font-weight: 700; }
.fourgrid-section .container .section-subtitle { text-align: center; color: #fff; font-size: 15px; margin-bottom: 40px; }
.fourgrid-emblem { display: flex; justify-content: center; margin-bottom: 8px; }
.fourgrid-emblem img { width: 80px; height: auto; }

.fourgrid { width: 90%; max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 30px; }
.fourgrid .card { position: relative; background: #fff; border: 1px solid #dfe8e2; padding: 30px; display: flex; flex-direction: column; gap: 10px; color: #333; box-shadow: 0 4px 12px rgba(17,17,17,0.06); flex: 1 1 45%; box-sizing: border-box; }
.fourgrid .card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.fourgrid .icon { width: 40px; height: 40px; margin-right: 10px; }
.fourgrid .card-title { font-size: 20px; font-weight: 700; }
.fourgrid .arrow { margin-left: auto; font-size: 22px; color: #2fa36a; text-decoration: none; }
.fourgrid .card-content { color: #333; font-size: 14px; line-height: 1.8; }

.service-section { background: transparent; }
.service-section .container { background: var(--accent-weak-bg); border: 1px solid var(--accent-weak-border); padding: 50px 20px; border-radius: 0; }
.service-section .section-title { text-align: center; color: var(--color-primary); font-size: 36px; font-weight: 800; letter-spacing: 0.02em; }
.service-section .section-subtitle { text-align: center; color: #5f7c6e; font-size: 15px; margin-top: 8px; }
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 28px; }
.service-card { position: relative; background: #fff; border: 1px solid #e5e7eb; padding: 22px; box-shadow: 0 8px 18px rgba(17,17,17,0.08); border-radius: 0; overflow: hidden; }
.service-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; width: 90%; justify-self: center; }
.service-card.wide .head { grid-column: 1; }
.service-card.wide .card-desc { grid-column: 1; }
.service-card.wide .btn { grid-column: 2; align-self: center; }
.service-card .head { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-bottom: 8px; }
.service-card .badge { display: inline-block; padding: 6px 10px; background: #eaf4ef; color: var(--color-primary); border: 1px solid var(--accent-weak-border); border-radius: 10px; font-size: 13px; }
.service-card.wide .badge { width: 80px; height: 80px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-right: 10px; }
.service-card .card-title { font-size: 1rem; font-weight: 800; color: #222; }
.service-card .card-desc { color: #5f7c6e; margin-top: 12px; line-height: 1.9; font-size: 1.5rem; }
.service-card .btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 18px; background: var(--color-primary); color: #fff; border: 1px solid var(--color-primary); border-radius: 10px; font-weight: 700; }
.service-card .btn::after { content: "›"; font-size: 18px; line-height: 1; }
.service-card.wide .btn { margin-top: 0; justify-self: end; }
.service-card .ghost-icon { position: absolute; top: 6px; right: 6px; width: 140px; height: auto; opacity: 0.06; pointer-events: none; z-index: 1; }
.service-card .head, .service-card .card-desc, .service-card .btn { position: relative; z-index: 2; }
.service-footer-cta { display: flex; justify-content: center; margin-top: 28px; }
.service-footer-cta .btn { display: inline-flex; align-items: center; gap: 8px; padding: 18px 40px; background: var(--color-primary); color: #fff; border: 1px solid var(--color-primary); border-radius: 10px; font-weight: 700; box-shadow: 0 6px 0 var(--accent-border); }
.service-footer-cta .btn::after { content: "›"; font-size: 18px; }

.contact-banner { background: #111; color: #fff; }
.contact-banner .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.contact-banner .cta a { display: inline-block; padding: 10px 16px; background: #fff; color: #111; border: 1px solid #fff; }

.contact-bottom { background: #268b6e; padding: 80px 0 5px 0; font-family: 'Noto Sans JP', sans-serif; color: #fff; position: relative; text-align: center; }
.contact-bottom .contact-head { position: relative; display: inline-block; }
.contact-bottom .contact-owl img { width: 110px; position: absolute; right: -150px; top: -20px; z-index: 20; pointer-events: none; }
.contact-bottom .contact-head .label { font-size: 16px; margin: 0 0 10px 0; }
.contact-bottom .contact-head .title { font-size: 32px; font-weight: 700; margin: 0 0 20px 0; }
.contact-bottom .contact-head .sub { font-size: 16px; margin: 0; }
.contact-bottom .contact-card { background: #fff; width: 80%; max-width: 950px; margin: 20px auto 60px auto; padding: 40px 0px; border-radius: 12px; display: flex; justify-content: center; gap: 40px; align-items: center; box-shadow: 0 6px 20px rgba(0,0,0,0.15); font-family: 'Noto Sans JP', sans-serif; position: relative; z-index: 10; color: #333; text-align: center; }
.contact-bottom .contact-card .phone { width: 48%; border-right: 1px solid #ddd; padding-right: 0; text-align: center; }
.contact-bottom .contact-card .email { width: 48%; padding-left: 0; text-align: center; }
.contact-bottom .contact-card .label { font-size: 16px; font-weight: 700; margin-bottom: 15px; color: #333; }
.contact-bottom .contact-card .phone .line { display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.contact-bottom .contact-card .phone .icon { width: 38px; margin-right: 10px; }
.contact-bottom .contact-card .number { font-size: 34px; font-weight: 700; color: #333; }
.contact-bottom .contact-card .hours { font-size: 14px; color: #555; margin: 0; }
.contact-bottom .btn-mail { display: inline-flex; align-items: center; background: #f18c74; color: #fff; font-size: 18px; font-weight: 700; padding: 18px 40px; border-radius: 50px; text-decoration: none; box-shadow: 0 6px 0 #c55b3a; }
.contact-bottom .btn-mail .icon { width: 24px; margin-right: 12px; }
.contact-bottom .btn-mail .arrow { font-size: 20px; margin-left: 12px; }

@media (max-width: 960px) {
  .contact-bottom .contact-card { flex-direction: column; gap: 24px; }
  .contact-bottom .contact-card .phone, .contact-bottom .contact-card .email { width: 100%; padding: 0; border: none; }
}

.site-footer { background: #fff; border-top: 1px solid #e5e7eb; padding: 24px 0; color: #666; }
.site-footer .footer-top { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; margin-bottom: 8px; }
.site-footer .footer-brand { display: flex; align-items: center; gap: 12px; }
.site-footer .footer-brand img { width: 240px; height: 80px; }
.site-footer .footer-brand .title { font-weight: 700; color: #333; }
.site-footer .footer-brand .sub { font-size: 12px; color: #888; }
.site-footer .footer-brand .brand-text { display: flex; flex-direction: column; }
.site-footer .footer-nav nav { display: block; }
.site-footer .footer-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.site-footer .footer-nav .menu > li { margin: 0; padding: 0 14px 0 0; border-right: 1px solid #e5e7eb; }
.site-footer .footer-nav .menu > li:last-child { border-right: none; padding-right: 0; }
.site-footer .footer-nav .menu > li > a { color: #666; font-size: 13px; padding: 6px 0; display: inline-block; }
.site-footer .footer-nav .menu > li > a:hover { color: var(--color-primary); text-decoration: none; }
.site-footer .footer-nav .menu > li.current-menu-item > a, .site-footer .footer-nav .menu > li.current-menu-ancestor > a { color: var(--color-primary); font-weight: 600; }
.site-footer .footer-nav .menu a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }
.site-footer .footer-bottom { text-align: center; color: var(--color-primary); font-size: 13px; }

.wpcf7 { width: 100%; }
.wpcf7 form { display: grid; gap: 12px; }
.wpcf7 label { font-weight: 600; color: #333; }
.wpcf7 .wpcf7-form-control { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; background: #fff; color: #111; }
.wpcf7 textarea.wpcf7-form-control { min-height: 120px; resize: vertical; }
.wpcf7 select.wpcf7-form-control { padding-right: 30px; }
.wpcf7 .wpcf7-form-control:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; border-color: var(--color-primary); }
.wpcf7 .wpcf7-form-control::placeholder { color: #999; }
.wpcf7 .wpcf7-not-valid { border-color: #d76f5b; }
.wpcf7 .wpcf7-not-valid-tip { color: #d76f5b; font-size: 12px; margin-top: 6px; }
.wpcf7 .wpcf7-list-item { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; }
.wpcf7 input[type=checkbox], .wpcf7 input[type=radio] { accent-color: var(--color-primary); }
.wpcf7 input[type=submit] { display: inline-block; padding: 10px 16px; background: var(--color-primary); color: #fff; border: 1px solid var(--color-primary); cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--color-accent); border-color: var(--color-accent); }
.wpcf7 input[type=submit]:disabled { background: #bbb; border-color: #bbb; cursor: not-allowed; }
.wpcf7 .wpcf7-spinner { margin-left: 8px; }
.wpcf7 .wpcf7-response-output { border: 1px solid var(--color-primary); background: var(--accent-weak-bg); color: #111; padding: 10px 12px; }
.wpcf7 .wpcf7-response-output.wpcf7-validation-errors, .wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ng { border-color: #d76f5b; background: #fdeae6; }
.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ok { border-color: var(--color-primary); background: #eaf4ef; }

@media (max-width: 960px) {
  .company .container { grid-template-columns: 1fr; }
  .company .heading { font-size: 30px; }
  .company .image-wrap::after { right: -20px; bottom: -20px; width: 70%; height: 40%; }
  .fourgrid .card { flex: 1 1 100%; }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .post-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 782px) {
  .admin-bar .site-header .nav-wrap { top: 32px; }
}
@media (max-width: 781px) {
  .admin-bar .site-header .nav-wrap { top: 46px; }
}

@media (max-width: 600px) {
  .fourgrid .card { flex: 1 1 100%; }
  .service-cards { grid-template-columns: 1fr; }
  .site-footer .footer-nav .menu { justify-content: center; }
  .site-footer .footer-nav .menu > li { border-right: none; padding-right: 0; }
  .post-list { grid-template-columns: 1fr; }
}
:root { --color-primary: #2a8a55; --color-accent: #21875a; --accent-border: #1a6d47; --accent-weak-bg: #eaf4ef; --accent-weak-border: #d9e8df; --color-secondary: #d76f5b; --container-max: 1160px; }
