/*
Theme Name: Ampel
Author: 株式会社アンペル
Description: 固定ページで本文を管理する、アンペルの汎用クラシックテーマ。
Version: 1.7.3
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: ampel
*/

:root {
  --color-blue: #0000fe;
  --color-navy: #0000b4;
  --color-orange: #ff7f00;
  --color-surface: #f9f9f9;
  --content-max-width: 1200px;
  --font-ja: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #000; background: #fff; font: 400 15px/1.9 var(--font-ja); overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 4px; }
.container { width: min(var(--content-max-width), calc(100% - 40px)); margin-inline: auto; }
.site-header { position: relative; z-index: 3; border-bottom: 1px solid #d5d5d5; background: rgba(255,255,255,.85); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding-block: 12px; }
.site-logo { display: block; width: 213px; flex-shrink: 0; }
.site-logo img { display: block; width: 100%; height: auto; }
.menu, .menu .sub-menu { margin: 0; padding: 0; list-style: none; }
.main-nav { min-width: 0; font-size: 14px; }
.main-nav > .menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 20px; }
.main-nav li { position: relative; }
.menu a { display: block; }
.menu a:hover, .menu .current-menu-item > a, .menu .current-menu-ancestor > a { color: var(--color-blue); }
.main-nav .sub-menu { position: absolute; top: 100%; left: 0; width: 210px; padding: 12px; background: #fff; border: 1px solid #d5d5d5; box-shadow: 0 8px 20px #0001; visibility: hidden; }
.main-nav > .menu > li:last-child > .sub-menu { left: auto; right: 0; }
.main-nav .sub-menu .sub-menu { position: static; width: auto; padding: 0 0 0 12px; border: 0; box-shadow: none; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { visibility: visible; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 5px; border: 0; background: none; flex-shrink: 0; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--color-blue); }
.menu-toggle span:nth-child(2) { background: var(--color-orange); }
.mobile-drawer { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0 0 40px; border: 0; background: #fff; overflow-y: auto; }
.mobile-drawer:not([open]) { display: none; }
.mobile-drawer::backdrop { background: #fff; }
.mobile-drawer__header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.menu-close { width: 44px; height: 44px; border: 0; background: none; color: var(--color-blue); font-size: 36px; line-height: 1; cursor: pointer; }
.mobile-drawer__nav { margin-top: 32px; }
.mobile-drawer__nav a { padding: 10px 0; border-bottom: 1px solid #e7e7e7; }
.mobile-drawer__nav .sub-menu { padding-left: 20px; }
body.menu-is-open { overflow: hidden; }
#main-content { min-height: 50vh; }
.page-heading { padding: 64px 0; background: var(--color-surface); border-bottom: 3px solid var(--color-orange); }
.page-heading h1 { margin: 0; color: var(--color-navy); font-size: clamp(28px, 4vw, 40px); line-height: 1.5; letter-spacing: .04em; }
.entry-content { padding-block: 64px; display: flow-root; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content--full { width: 100%; padding: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { line-height: 1.5; }
.entry-content a:not(.wp-element-button):not(.wp-block-button__link) { color: var(--color-navy); text-decoration: underline; text-underline-offset: .2em; }
.entry-content figure { max-width: 100%; }
.entry-content iframe, .entry-content video { max-width: 100%; }
.entry-content pre { overflow: auto; padding: 20px; background: var(--color-surface); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid #d5d5d5; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content blockquote { margin-inline: 0; padding-left: 24px; border-left: 3px solid var(--color-orange); }
.entry-content:not(.entry-content--full) > .alignwide { width: min(1200px, calc(100vw - 40px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content:not(.entry-content--full) > .alignfull { width: auto; max-width: none; margin-inline: min(-20px, calc((1020px - 100vw) / 2)); }
.alignleft { float: left; margin: 0 24px 24px 0; }
.alignright { float: right; margin: 0 0 24px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: #555; }
.entry-summary { padding-block: 24px; border-bottom: 1px solid #d5d5d5; }
.page-links, .pagination { margin-top: 32px; }
.page-numbers, .post-page-numbers { display: inline-block; padding: 8px 12px; }
.site-footer { border-top: 1px solid #e7e7e7; background: #fff; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; padding-block: 38px; }
.company-info { flex: 1 1 230px; font-size: 12px; line-height: 1.5; letter-spacing: .04em; }
.company-info strong { display: block; margin-bottom: 15px; font-size: 15px; }
.company-info p { margin: 4px 0 0; }
.footer-nav { font-size: 14px; }
.footer-nav li + li { margin-top: 9px; }
.footer-nav .sub-menu { padding-left: 15px; }
.footer-actions { width: 177px; font-size: 15px; }
.footer-actions li + li { margin-top: 9px; }
.footer-actions a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 17px; border: 1px solid var(--color-blue); color: var(--color-blue); }
.footer-actions a::after { content: '→'; }
.footer-actions .menu > li:first-child > a { background: linear-gradient(90deg, #ff7f00, #fe0000); border-color: var(--color-orange); color: #fff; }
.footer-actions .sub-menu { padding-left: 12px; }
.back-to-top { display: none !important; }
.copyright { padding: 10px 20px; background: var(--color-orange); color: #fff; font-size: 12px; text-align: center; letter-spacing: .08em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 100000; top: 10px; left: 10px; width: auto; height: auto; padding: 12px 20px; clip-path: none; background: #fff; color: var(--color-navy); }
@media (max-width: 1060px) {
  .site-logo { width: 162px; }
  .has-mobile-menu .main-nav { display: none; }
  .has-mobile-menu .menu-toggle:not([hidden]) { display: flex; flex-direction: column; justify-content: center; gap: 7px; }
  .site-header__inner { flex-wrap: wrap; }
  .main-nav { flex: 1 1 100%; }
  .main-nav > .menu { justify-content: flex-start; }
  .main-nav .sub-menu { position: static; width: auto; visibility: visible; box-shadow: none; border: 0; padding: 0 0 0 12px; }
}
@media (max-width: 600px) {
  .page-heading { padding-block: 40px; }
  .entry-content:not(.entry-content--full) { padding-block: 40px; }
  .site-footer__inner { display: grid; grid-template-columns: 1fr; }
  .footer-actions { width: min(100%, 300px); }
  .alignleft, .alignright { float: none; margin-inline: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Footer follows the original logo / company / navigation / actions grouping. */
.site-footer { background: #f9f9f9; border-top: 0; }
.site-footer__inner { display: grid; grid-template-columns: 340px max-content max-content 1fr; gap: 44px; padding-block: 45px; }
.site-footer .site-logo { width: 340px; max-width: 100%; }
.site-footer .company-info { font-size: 13px; }
.site-footer .company-info strong { font-size: 16px; }
.site-footer .footer-actions { justify-self: end; width: 208px; }
@media (max-width: 1199px) {
  .site-footer__inner { grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) max-content; gap: 28px; }
  .site-footer .footer-actions { grid-column: 2 / 4; justify-self: start; }
}
@media (max-width: 767px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer .footer-actions { grid-column: auto; }
}

.site-footer .footer-nav { font-size: 16px; line-height: 1.5; }
.site-footer .footer-nav li + li { margin-top: 10px; }

/* A single width and gutter system for shared chrome and page content. */
:root { --site-gutter: 40px; --site-header-height: 68px; --admin-bar-offset: 0px; }
.container { width: min(var(--content-max-width), calc(100% - var(--site-gutter))); }
body .site-header { position: fixed; inset: var(--admin-bar-offset) 0 auto; width: 100%; z-index: 100; background: rgba(255,255,255,.96); }
body:not(.ampel-has-banner):not(.ampel-html-page):not(.ampel-news):not(.ampel-page-preview) { padding-top: var(--site-header-height); }
html { scroll-padding-top: calc(var(--site-header-height) + var(--admin-bar-offset) + 20px); }
html:has(body.admin-bar), body.admin-bar { --admin-bar-offset: 32px; }
@media (max-width: 1060px) { :root { --site-gutter: 32px; } }
@media (max-width: 782px) { html:has(body.admin-bar), body.admin-bar { --admin-bar-offset: 46px; } }
@media (max-width: 600px) { #wpadminbar { position: fixed; } }
.site-footer__inner > * { min-width: 0; }
@media (max-width: 767px) { .site-footer__inner { grid-template-columns: minmax(0, 1fr); } }
.menu-toggle img { display: block; width: 40px; height: 40px; }
.menu-close { display: grid; place-items: center; }
.menu-close img { display: block; width: 32px; height: 32px; }
@media (max-width: 767px) {
  :root { --site-header-height: 80px; }
  body .site-header { background: rgba(255,255,255,.85); }
  .site-header__inner, .mobile-drawer__header { width: 100%; min-height: 80px; padding: 0 40px; flex-wrap: nowrap; }
  .site-header .site-logo, .mobile-drawer .site-logo { width: 150px; }
  .menu-toggle, .menu-close { width: 40px; height: 40px; padding: 0; }
  .mobile-drawer__header { border-bottom: 1px solid #d5d5d5; }
  .mobile-drawer__nav { width: calc(100% - 40px); margin-top: 40px; font-size: 16px; line-height: 1.5; }
  .mobile-drawer__nav a { padding: 10px 0; }
  .site-footer__inner { justify-items: center; gap: 44px; padding-block: 45px; }
  .site-footer .footer-actions { order: 0; justify-self: center; width: 208px; }
  .site-footer .site-logo { order: 1; width: 200px; }
  .site-footer .company-info { order: 2; width: 100%; text-align: center; font-size: 15px; line-height: 1.5; letter-spacing: .08em; }
  .site-footer .company-info strong { display: block; margin-bottom: 18px; font-size: 18px; }
  .site-footer .company-info p { margin: 0 0 3px; }
  .site-footer .footer-nav { order: 3; margin-top: 16px; text-align: center; }
  .site-footer .footer-nav > .menu { display: grid; grid-template-columns: repeat(3, max-content); justify-content: center; gap: 10px; }
  .site-footer .footer-nav li + li { margin-top: 0; }
  .site-footer .footer-actions .menu { gap: 10px; }
  .site-footer .footer-actions a { min-height: 50px; font-size: 18px; }
  .copyright { padding: 12px 10px; font-size: clamp(12px, 4vw, 15px); line-height: 1.4; letter-spacing: .08em; }
}
.footer-actions a::after { content: ''; flex: 0 0 14px; width: 14px; height: 7px; background: url('assets/pages/arrow-blue.svg') center / contain no-repeat; transform: rotate(90deg); }
.footer-actions .menu > li:first-child > a::after { background-image: url('assets/pages/arrow-white.svg'); }
@media (max-width: 767px) {
  .site-footer .footer-actions a { padding: 15px 20px; line-height: 1; font-weight: 700; letter-spacing: .08em; }
  .site-footer .footer-actions li + li { margin-top: 10px; }
}

/* reCAPTCHA branding is displayed beside each form submit button. */
.grecaptcha-badge { visibility: hidden; }

/* Temporary: hide links to the news index. Remove this block to restore them. */
a:is([href="/news"], [href="/news/"], [href="news.html"], [href$="/news"], [href$="/news/"], [href$="/news.html"]),
.menu li:has(> a:is([href="/news"], [href="/news/"], [href="news.html"], [href$="/news"], [href$="/news/"], [href$="/news.html"])) {
  display: none !important;
}
