/*
Theme Name: AFFINGER Child
Template: affinger
Description: AFFINGER6 対応
Version: 20240601
*/
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;600;700;800&family=Zen+Kaku+Gothic+New:wght@400;500;700;900&display=swap');

/*media Queries スマートフォンとタブレットサイズ（959px以下）で適応させるCSS - スマホ・タブレット
---------------------------------------------------------------------------------------------------*/
@media only screen and (max-width: 959px) {


	/*-- ここまで --*/
}
	
/*media Queries タブレットサイズ（600px～959px）のみで適応させるCSS -タブレットのみ
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) and (max-width: 959px) {


	/*-- ここまで --*/
}	
	
/*media Queries タブレット（600px）以上で適応させるCSS -タブレット・PC
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) {


	/*-- ここまで --*/
}

/*media Queries PCサイズ（960px）以上で適応させるCSS - PCのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (min-width: 960px) {


	/*-- ここまで --*/
}

/*media Queries スマホサイズ（599px）以下で適応させるCSS - スマホのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (max-width: 599px) {

	
	/*-- ここまで --*/
}

/* ============================================================
   m8-mw.com トップページ新デザイン追加分 ここから (v2)
   ============================================================ */

.m8mw-top {
  --m8-white: #ffffff;
  --m8-pale: #eaf5fa;
  --m8-deep: #294b60;
  --m8-deep-hover: #1e3a4c;
  --m8-text: #294b60;
  --m8-text-body: #3c5164;
  --m8-text-soft: #5c7386;
  --m8-text-faint: #8698a8;
  --m8-line: #d7e6ee;
  --m8-band-bg: #234459;
  --m8-band-ink: #ffffff;
  --m8-band-ink-soft: #cfe2ec;
  --m8-band-input: #1e3a4c;
  --m8-band-btn-bg: #ffffff;
  --m8-band-btn-text: #294b60;
  --m8-font-display: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --m8-font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;

  background: var(--m8-white);
  color: var(--m8-text-body);
  font-family: var(--m8-font-body);
  font-size: 16.5px;
  line-height: 1.85;
}
.m8mw-top * { box-sizing: border-box; }
.m8mw-top h1, .m8mw-top h2, .m8mw-top h3, .m8mw-top h4 { font-weight: 600; margin: 0; }
.m8mw-top h1, .m8mw-top h1 *,
.m8mw-top h2, .m8mw-top h2 *,
.m8mw-top h3, .m8mw-top h3 *,
.m8mw-top h4, .m8mw-top h4 * {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  color: var(--m8-text) !important;
}
.m8mw-top p { margin: 0 0 1.25em; }
.m8mw-top a { color: var(--m8-deep); text-underline-offset: 3px; }
.m8mw-top img { max-width: 100%; }
.m8mw-top :focus-visible { outline: 2px solid var(--m8-deep); outline-offset: 3px; }

.m8mw-col { max-width: 1040px; margin: 0 auto; padding-inline: 28px; }
.m8mw-col-wide { max-width: 1040px; margin: 0 auto; padding-inline: 28px; }
@media (max-width: 600px) { .m8mw-col, .m8mw-col-wide { padding-inline: 20px; } }

.m8mw-section-title { font-size: clamp(22px, 2.7vw, 27px); margin-bottom: 16px; }
.m8mw-section-lead { color: var(--m8-text-soft); font-size: 15px; }

.m8mw-btn .wp-block-button__link {
  display: inline-flex !important; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--m8-deep) !important; color: #fff !important; text-decoration: none;
  font-family: var(--m8-font-body); font-weight: 700; font-size: 14.5px;
  padding: 12px 26px !important; border-radius: 2px !important; transition: background 0.15s ease;
}
.m8mw-btn .wp-block-button__link:hover { background: var(--m8-deep-hover) !important; color: #fff !important; }
.m8mw-btn.m8mw-btn-large .wp-block-button__link { font-size: 15.5px; padding: 15px 32px !important; }
.m8mw-btn.m8mw-btn-inverse .wp-block-button__link { background: var(--m8-band-btn-bg) !important; color: var(--m8-band-btn-text) !important; }
.m8mw-btn.m8mw-btn-inverse .wp-block-button__link:hover { background: var(--m8-band-ink-soft) !important; }
.m8mw-btn-outline .wp-block-button__link {
  display: inline-flex !important; align-items: center; gap: 8px;
  background: transparent !important; color: var(--m8-deep) !important; text-decoration: none;
  font-family: var(--m8-font-body); font-weight: 700; font-size: 14px;
  padding: 13px 30px !important; border: 1px solid var(--m8-deep) !important; border-radius: 2px !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.m8mw-btn-outline .wp-block-button__link:hover { background: var(--m8-deep) !important; color: #fff !important; }

.m8mw-hero { background: var(--m8-white); padding: 100px 0 40px; }
.m8mw-hero-inner { max-width: 1040px; margin: 0 auto; padding-inline: 28px; }
@media (max-width: 600px) { .m8mw-hero-inner { padding-inline: 20px; } }
.m8mw-hero-name { font-size: 15px; letter-spacing: 0.03em; color: var(--m8-text-soft); margin-bottom: 26px; }
.m8mw-hero-name strong { color: var(--m8-text); font-weight: 700; }
.m8mw-hero-headline { font-family: var(--m8-font-display) !important; font-size: clamp(36px, 5.5vw, 56px) !important; line-height: 1.35 !important; font-weight: 700 !important; color: var(--m8-text); }
.m8mw-hero-lede { margin-top: 26px; color: var(--m8-text-soft); font-size: 16.5px; line-height: 1.85; }
.m8mw-hero-tags { margin-top: 22px; font-size: 13.5px; color: var(--m8-text-faint); }
.m8mw-hero-actions { margin-top: 24px !important; }

.m8mw-intro { padding: 24px 0 56px; background: var(--m8-white); }
.m8mw-lead-text { font-size: 17px; line-height: 1.9; color: var(--m8-text-body); max-width: 32em; }

.m8mw-field-section { background: var(--m8-white); padding: 92px 0; border-top: 1px solid var(--m8-line); }
.m8mw-field-lead-block { background: var(--m8-pale); border-top: 3px solid var(--m8-deep); padding: 30px 32px; margin-top: 34px; }
.m8mw-field-lead-block h3 { font-size: 18px; margin-bottom: 10px; }
.m8mw-field-lead-block p { margin: 0; font-size: 14.5px; color: var(--m8-text-soft); }
.wp-block-columns.m8mw-field-row { gap: 1px !important; margin-top: 1px !important; background: var(--m8-line); }
.wp-block-column.m8mw-field-item { background: var(--m8-pale); padding: 26px 28px; }
.m8mw-field-item h4 { font-size: 15.5px; font-weight: 700; font-family: var(--m8-font-body); color: var(--m8-text); margin: 0 0 8px; }
.m8mw-field-item p { margin: 0; font-size: 13.5px; color: var(--m8-text-soft); }

.m8mw-works-section { background: var(--m8-white); padding: 96px 0 104px; border-top: 1px solid var(--m8-line); }
.m8mw-works-head { margin-bottom: 44px; }
.m8mw-works-wrap { max-width: 1040px; margin: 0 auto; padding-inline: 28px; }
@media (max-width: 600px) { .m8mw-works-wrap { padding-inline: 20px; } }
.wp-block-columns.m8mw-works-row { gap: 26px !important; margin-bottom: 26px !important; }
.wp-block-column.m8mw-work-card {
  display: flex !important; flex-direction: column; background: var(--m8-white);
  border: 1px solid var(--m8-line); overflow: hidden; padding: 0 !important;
}
.m8mw-badge { display: inline-block; align-self: flex-start; margin-bottom: 10px; font-size: 10.5px; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 2px; font-weight: 700; }
.m8mw-badge-public { background: var(--m8-deep); color: #fff; }
.m8mw-badge-private { background: var(--m8-pale); color: var(--m8-deep); }
.m8mw-work-media { aspect-ratio: 16 / 9 !important; overflow: hidden; background-color: var(--m8-pale); margin: 0 !important; }
.m8mw-work-media img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover !important; display: block !important; margin: 0 !important; }
.m8mw-work-media.m8mw-contain img { object-fit: contain !important; }
.m8mw-work-body { flex: 1; display: block; padding: 0; }
.m8mw-work-body > div { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px 26px; height: 100%; }
.m8mw-work-cat { font-size: 12px; letter-spacing: 0.03em; color: var(--m8-deep); }
.m8mw-work-card h3 { font-family: var(--m8-font-body); font-weight: 700; font-size: 15.5px; line-height: 1.55; margin: 6px 0 8px; }
.m8mw-work-scope { font-size: 11.5px; color: var(--m8-text-faint); border: 1px solid var(--m8-line); display: inline-block; padding: 2px 9px; border-radius: 2px; align-self: flex-start; margin-bottom: 4px; }
.m8mw-work-desc { font-size: 13.5px; color: var(--m8-text-soft); line-height: 1.7; flex: 1; margin: 0; }
.m8mw-work-link-btn { margin-top: 14px !important; }
.m8mw-work-link-btn .wp-block-button__link {
  background: transparent !important; color: var(--m8-deep) !important; font-size: 12.5px; font-weight: 700;
  padding: 0 !important; text-decoration: none; border-radius: 0; display: inline-block; min-height: 0;
}
.m8mw-work-link-btn .wp-block-button__link:hover { text-decoration: underline; }
.m8mw-works-more { text-align: center; margin-top: 44px !important; }
.m8mw-works-more-note { margin: 10px 0 0; font-size: 12px; color: var(--m8-text-faint); }

.m8mw-stance-section { background: var(--m8-white); padding: 68px 0; border-top: 1px solid var(--m8-line); border-bottom: 1px solid var(--m8-line); }
.m8mw-stance-section p { font-size: 16px; line-height: 1.9; color: var(--m8-text-body); max-width: 30em; }
.m8mw-emphasis-line { font-size: clamp(21px, 3vw, 27px); font-weight: 700; color: var(--m8-deep); line-height: 1.65; margin: 30px 0; }

.m8mw-profile-section { background: var(--m8-white); padding: 88px 0; }
.wp-block-columns.m8mw-profile-row { gap: 40px !important; align-items: flex-start !important; }
.wp-block-column.m8mw-profile-photo-col { flex-basis: 160px !important; flex-grow: 0 !important; }
.m8mw-profile-role { font-size: 13.5px; color: var(--m8-text-soft); margin-bottom: 16px; }
.m8mw-profile-bio p { font-size: 15.5px; line-height: 1.9; }
.m8mw-fact-list { margin: 22px 0 0; }
.wp-block-columns.m8mw-fact-row { border-top: 1px solid var(--m8-line); padding: 12px 0 !important; margin: 0 !important; font-size: 13.5px; }
.wp-block-column.m8mw-fact-label-col { flex-basis: 120px !important; flex-grow: 0 !important; }
.m8mw-fact-label { color: var(--m8-text-faint); margin: 0 !important; }
.m8mw-fact-value { color: var(--m8-text-body); margin: 0 !important; }
.m8mw-profile-links { margin-top: 20px; display: flex; gap: 18px; font-size: 13.5px; }
.m8mw-profile-links a { text-decoration: none; border-bottom: 1px solid var(--m8-line); padding-bottom: 2px; }

.m8mw-contact-section { background: var(--m8-band-bg); padding: 100px 0 84px; }
.m8mw-contact-section .m8mw-section-title { color: var(--m8-band-ink); }
.m8mw-contact-section .m8mw-section-lead { color: var(--m8-band-ink-soft); max-width: 40ch; }
.m8mw-contact-section p { color: var(--m8-band-ink-soft); }
.wp-block-columns.m8mw-contact-row { gap: 56px !important; margin-top: 36px !important; align-items: flex-start !important; }
.m8mw-contact-section .wpcf7-form-control-wrap input,
.m8mw-contact-section .wpcf7-form-control-wrap textarea {
  background: var(--m8-band-input); border: 1px solid color-mix(in srgb, var(--m8-band-ink-soft) 30%, transparent);
  padding: 11px 13px; color: var(--m8-band-ink); font-family: var(--m8-font-body); font-size: 14px; width: 100%;
}
.m8mw-contact-section .wpcf7-submit {
  width: 100%; background: var(--m8-band-btn-bg); color: var(--m8-band-btn-text); border: none; padding: 13px; font-weight: 700;
  font-family: var(--m8-font-body); font-size: 14.5px; cursor: pointer;
}
.m8mw-contact-section .wpcf7 { margin: 0 !important; padding: 0 !important; }
.m8mw-contact-section .screen-reader-response {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: -1px !important;
  padding: 0 !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.m8mw-contact-section h1, .m8mw-contact-section h1 *,
.m8mw-contact-section h2, .m8mw-contact-section h2 *,
.m8mw-contact-section h3, .m8mw-contact-section h3 * {
  color: var(--m8-band-ink) !important;
}

.page-id-22 .entry-title { display: none; }

.wp-block-columns.m8mw-hero-row { align-items: center !important; gap: 56px !important; }
.m8mw-hero-photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; margin: 0 !important; animation: m8mwHeroPhotoIn 1s ease-out 0.15s both; }
.m8mw-hero-photo img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; margin: 0 !important; }
@keyframes m8mwHeroPhotoIn {
  from { opacity: 0; transform: scale(0.94) translateY(14px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .m8mw-hero-photo { animation: none; } }
@media (max-width: 780px) { .m8mw-hero-photo { aspect-ratio: 16 / 10; } }

/* ============================================================
   追加分ここまで (v2)
   ============================================================ */