/*
Theme Name: MiraiKachi
Theme URI: 
Author: 愛媛大学 未来価値創造機構
Author URI: 
Description: 愛媛大学未来価値創造機構の対談サイト用 WordPress テーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: miraikachi
Tags: featured-images, responsive-layout
*/

html,
body {
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #4a4a4a;
  line-height: 1.9;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

button,
a {
  font: inherit;
}

/* header.php: page wrapper + top bar */
.mk-page {
  font-family: "Noto Sans JP", sans-serif;
  color: #666;
  line-height: 1.9;
  position: relative;
  overflow-x: hidden;
  background: rgb(255, 255, 255);
}
.mk-side-rail {
  position: fixed;
  top: 0;
  right: 0;
  width: 62px;
  height: 100%;
  background: rgb(255, 255, 255);
  z-index: 30;
}
.mk-vertical-tagline {
  position: absolute;
  top: 74px;
  right: 22px;
  z-index: 34;
  height: 430px;
  width: auto;
  display: block;
}
.mk-top-logo-link {
  position: absolute;
  top: 14px;
  left: 30px;
  z-index: 40;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.mk-top-logo-img {
  display: block;
  height: clamp(48px, 5.4vw, 66px);
  width: auto;
  max-width: 62vw;
}
.mk-top-right {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 41;
  display: flex;
  align-items: flex-start;
}
.mk-top-wordmark {
  display: block;
  height: clamp(16px, 2.1vw, 24px);
  width: auto;
  margin: 22px 22px 0 0;
}
@media (max-width: 759px) {
  .mk-top-wordmark {
    display: none;
  }
}
.mk-menu-button {
  width: 62px;
  height: 58px;
  border: none;
  background: rgb(110, 110, 110);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
}
.mk-menu-bar {
  display: block;
  width: 30px;
  height: 3px;
  background: rgb(168, 224, 216);
}

/* header.php: hamburger menu drawer */
.mk-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 48;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.mk-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.mk-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 82vw);
  background: rgb(255, 255, 255);
  z-index: 50;
  padding: 110px 32px 40px;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.mk-menu-panel.is-open {
  transform: translateX(0);
}
.mk-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.mk-menu-list a {
  display: block;
  color: rgb(74, 74, 74);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.04em;
  padding-bottom: 10px;
  border-bottom: 1px solid rgb(238, 238, 238);
}
.mk-menu-list a:hover {
  color: rgb(24, 168, 157);
}
.mk-menu-close {
  position: fixed;
  top: 0;
  right: 0;
  width: 62px;
  height: 58px;
  border: none;
  background: rgb(110, 110, 110);
  cursor: pointer;
  z-index: 51;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mk-menu-close.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mk-menu-close-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 3px;
  background: rgb(168, 224, 216);
  transform: translate(-50%, -50%) rotate(45deg);
}
.mk-menu-close-bar:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 759px) {
  .mk-side-rail,
  .mk-vertical-tagline {
    display: none;
  }
}

/* footer.php: back-to-top button */
.mk-back-to-top {
  position: fixed;
  right: 70px;
  bottom: 20px;
  z-index: 40;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mk-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mk-back-to-top-img {
  display: block;
  width: 78px;
  height: auto;
}
@media (max-width: 759px) {
  .mk-back-to-top {
    right: 16px;
  }
}

/* template-parts/site-footer.php: shared site-info footer */
.mk-site-footer {
  border-top: 1px solid rgb(238, 238, 238);
  background: rgb(255, 255, 255);
  padding: 34px 22px 40px;
}
.mk-site-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}
.mk-site-footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 30px;
}
.mk-site-footer-logo {
  display: block;
  height: 80px;
  width: auto;
}
.mk-site-footer-tagline {
  display: block;
  width: min(520px, 100%);
  height: auto;
}
.mk-site-footer-address {
  font-size: 18px;
  color: rgb(119, 119, 119);
  margin-top: 14px;
  line-height: 1.4;
  margin-right: 0;
  margin-left: 15px;
}
.mk-site-footer-contact {
  font-size: 16px;
}
