/* ===== ハンバーガーメニュー（トップ・DDPARKについて・作品集で共通）=====
   動きは js/menu.js。HTMLは各ページの <body> のすぐ下 */
@keyframes menuBtnIn { from { opacity: 0; } to { opacity: 1; } }
.menu-sub a[aria-current="page"] { background: #41b79c; color: #fff; }
.menu-panel a { text-decoration: none; } /* ページのCSSでリンクに下線がついていても消す */
.menu-btn {
  position: fixed; top: 14px; right: 16px; z-index: 1001;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.menu-btn__bars,
.menu-btn__bars::before,
.menu-btn__bars::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: #484848;
  transition: transform .3s ease, top .3s ease, background-color .3s ease;
}
.menu-btn__bars { position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
html.menu-open .menu-btn__bars { background-color: transparent; }
html.menu-open .menu-btn__bars::before { top: 0; transform: rotate(45deg); background-color: #41b79c; }
html.menu-open .menu-btn__bars::after { top: 0; transform: rotate(-45deg); background-color: #41b79c; }
.menu-btn:focus-visible { outline: 2px solid #41b79c !important; outline-offset: 3px; }

@media screen and (max-width: 800px) {
  .menu-btn { opacity: 0; animation: menuBtnIn 1s ease-out var(--menu-btn-delay, 1.8s) forwards; } /* トップではヘッダーと同じころに出す */
}
@media screen and (min-width: 801px) {
  .menu-btn { opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
  html.menu-btn-show .menu-btn, html.menu-open .menu-btn { opacity: 1; pointer-events: auto; transform: none; }
}

/* 開いたときの画面 */
html.menu-open body { overflow: hidden; } /* 開いているあいだは後ろのページを動かさない（閉じたら元にもどる） */
.menu-panel {
  position: fixed; inset: 0; z-index: 1000;
  overflow-y: auto; overscroll-behavior: contain;
  background: #fff;
  font-family: "Osaka-Regular", Helvetica, sans-serif; color: #484848; line-height: 1.4;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
html.menu-open .menu-panel { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.menu-panel__inner {
  display: flex; flex-direction: column;
  min-height: 100%; max-width: 560px; margin: 0 auto; padding: 14px 24px 40px;
}
.menu-panel__logo { display: flex; align-items: center; gap: 12px; height: 48px; margin-left: -8px; padding-right: 64px; } /* スマホのヘッダーのロゴと同じ位置 */
.menu-panel__logo img:first-child { width: 36px; height: 36px; }
.menu-panel__logo img:last-child { width: 140px; height: auto; }

.menu-list { list-style: none; margin: 28px 0 0; padding: 0; }
.menu-list > li {
  border-bottom: 1px solid #ececec;
  opacity: 0; transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
}
html.menu-open .menu-list > li { opacity: 1; transform: none; }
html.menu-open .menu-list > li:nth-child(1) { transition-delay: .08s; }
html.menu-open .menu-list > li:nth-child(2) { transition-delay: .13s; }
html.menu-open .menu-list > li:nth-child(3) { transition-delay: .18s; }
html.menu-open .menu-list > li:nth-child(4) { transition-delay: .23s; }
html.menu-open .menu-list > li:nth-child(5) { transition-delay: .28s; }
html.menu-open .menu-list > li:nth-child(6) { transition-delay: .33s; }
.menu-list > li > a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 18px 4px; color: #484848;
}
.menu-list__en { font-size: 22px; font-weight: bold; letter-spacing: .08em; transition: color .2s; }
.menu-list__ja { font-size: 12px; color: #41b79c; white-space: nowrap; }
.menu-list > li > a:hover .menu-list__en,
.menu-list > li > a:focus-visible .menu-list__en { color: #41b79c; }
.menu-sub { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: -4px 0 0; padding: 0 4px 18px; }
.menu-sub a {
  display: inline-block; font-size: 13px; color: #41b79c;
  border: 1px solid #41b79c; border-radius: 100px; padding: 6px 14px;
  transition: background-color .2s, color .2s;
}
.menu-sub a:hover, .menu-sub a:focus-visible { background: #41b79c; color: #fff; }
.menu-cta {
  display: block; margin-top: 32px; padding: 16px; border-radius: 100px;
  background: #41b79c; color: #fff; font-size: 16px; font-weight: bold; text-align: center;
  transition: background-color .2s;
}
.menu-cta:hover, .menu-cta:focus-visible { background: #23866f; }

@media (prefers-reduced-motion: reduce) {
  .menu-btn, .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after,
  .menu-panel, .menu-list > li { transition: none !important; animation: none !important; opacity: 1; }
  .menu-panel { opacity: 0; }
  html.menu-open .menu-panel { opacity: 1; }
}


/* SERVICEの中身：トップのSERVICE欄と同じ「つくる・おしえる・自社事業」に分ける（2026-11-10） */
.menu-svc {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; align-items: start;
  margin: -4px 0 0; padding: 0 4px 18px;
}
.menu-svc__label { margin: 0; padding-top: 7px; font-size: 11px; font-weight: bold; color: #999; white-space: nowrap; }
.menu-svc .menu-sub { margin: 0; padding: 0; }
.menu-sub__ext { margin-left: 4px; font-size: 11px; }
