/*
Theme Name: OTSUNAGI
Theme URI: https://otsunagi.co
Author: OTSUNAGI
Author URI: https://otsunagi.co
Description: OTSUNAGIウェビナーコンサルティングのコーポレートサイトテーマ
Version: 1.0.38
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: otsunagi
Tags: corporate, japanese, webinar, consulting
*/

/* ===== CSS Variables ===== */
:root {
  --color-primary: #2A080C;
  --color-dark: #1B1A1A;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-bg-gray: #EDEDED;
  --color-bg-light: #F5F5F5;
  --color-bg-medium: #EFEFEF;
  --color-bg-footer: #4A4A4A;
  --color-circle: #252525;
  --color-tag-bg: #FFFFFF;
  --font-en: 'Noto Sans', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
  --font-display: 'Noto Sans', sans-serif;
  --max-width: 1440px;
  --content-padding: 0 190px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ja);
  color: var(--color-dark);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ===== Typography ===== */
.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 190px;
  position: relative;
}

.section-heading .en-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  color: #888;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.section-heading .ja-title {
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: 40px;
  line-height: 1.2;
  color: var(--color-black);
}

.section-heading .heading-line {
  position: absolute;
  width: 162px;
  height: 3px;
  background: var(--color-black);
  left: 190px;
  bottom: -8px;
}

/* ===== Buttons ===== */
.cv-btn {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 9px 44px 10px 30px;
  position: relative;
  background: #FE6B32;
  border-radius: 36px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  text-decoration: none;
  height: 43px;
}

.cv-btn:hover {
  opacity: 0.85;
}

.cv-btn span {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  text-align: center;
  color: var(--color-white);
  white-space: nowrap;
}

.cv-btn::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--color-white);
  border-right: 2px solid var(--color-white);
  transform: translateY(-50%) rotate(45deg);
}

/* Second header CTA button (お問い合わせ) gets yellow */
.header-cta a:last-child.cv-btn {
  background: #FDBA31;
}

.cv-btn-large {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 19px 60px 20px 40px;
  position: relative;
  width: 474px;
  height: 105px;
  background: var(--color-primary);
  border-radius: 66px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.cv-btn-large:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.cv-btn-large span {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 30px;
  line-height: 43px;
  text-align: center;
  color: var(--color-white);
}

.cv-btn-large::after {
  content: '→';
  position: absolute;
  right: 52px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-white);
  font-size: 32px;
  line-height: 1;
}

.cv-btn-large::before {
  content: none;
}

.cv-btn-large-white {
  background: var(--color-white);
}

.cv-btn-large-white span {
  color: var(--color-dark);
}

.cv-btn-large-white::after {
  color: #6C6C6C;
}

.cv-btn-large-white::before {
  content: none;
}

/* Service card "詳しく見る" — orange filled pill with white arrow circle (PDF) */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: var(--color-white);
  background: #FE6B32;
  border-radius: 999px;
  padding: 12px 16px 12px 28px;
  width: fit-content;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.text-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.text-link .arrow-circle {
  width: 30px;
  height: 30px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.text-link .arrow-circle::after {
  content: '→';
  color: var(--color-dark);
  font-size: 15px;
  line-height: 1;
}

/* Carousel nav buttons */
.nav-btn {
  width: 50px;
  height: 50px;
  background: var(--color-circle);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.nav-btn:hover {
  opacity: 0.75;
}

.nav-btn::after {
  content: '';
  width: 0.55em;
  height: 0.55em;
  border-top: 0.12em solid currentColor;
  border-right: 0.12em solid currentColor;
  box-sizing: border-box;
  color: var(--color-white);
  font-size: 22px;
  line-height: 1;
  /* 半正方形（上＋右ボーダー）の重心は箱の中心からずれるため、回転後に水平補正して円の中心に合わせる */
  transform: translate(0.15em, 0) rotate(225deg);
}

.nav-btn.next::after {
  transform: translate(-0.15em, 0) rotate(45deg);
}

/* ===== HEADER ===== */
#site-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  width: 100%;
  height: 115px;
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.site-logo a {
  display: flex;
  align-items: center;
  padding: 0;
  border: none;
  background: none;
  transition: opacity 0.2s ease;
}

.site-logo a:hover {
  opacity: 0.8;
  background: none;
}

.site-logo img {
  height: 46px;
  width: auto;
}

.header-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
}

.nav-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}

.nav-menu a {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  color: var(--color-dark);
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.nav-menu a:hover {
  opacity: 0.6;
}

.header-cta {
  display: flex;
  gap: 12px;
}

.mobile-header-cta {
  display: none;
}

/* ===== HERO / MAIN VISUAL ===== */
#hero {
  width: 100%;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Decorative rotated thumbnail columns in background */
.hero-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-col {
  position: absolute;
  width: 262px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: rotate(21.24deg);
  transform-origin: top left;
  opacity: 0.08;
}

.hero-bg-thumb {
  width: 262px;
  height: 148px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}

.hero-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 55px 80px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  position: relative;
  z-index: 1;
}

/* --- Hero Text (left) --- */
.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 26px;
}

.hero-sub {
  font-family: 'M PLUS 1p', var(--font-ja);
  font-weight: 900;
  font-size: 56px;
  line-height: 75px;
  letter-spacing: 0.05em;
  color: #000000;
  margin-bottom: 0;
}

.hero-headline {
  font-family: 'M PLUS 1p', var(--font-ja);
  font-weight: 900;
  line-height: 1;
  color: #000000;
  display: block;
  margin-bottom: 24px;
}

.hero-highlight {
  font-style: normal;
  font-size: 125px;
  line-height: 166px;
  color: #FE6B32;
  display: inline;
}

.hero-headline-no {
  font-size: 100px;
  line-height: 166px;
  color: #000000;
  display: inline;
  font-family: 'M PLUS 1p', var(--font-ja);
  font-weight: 900;
}

.hero-headline-pro {
  font-family: 'M PLUS 1p', var(--font-ja);
  font-weight: 900;
  font-size: 125px;
  line-height: 166px;
  color: #000000;
  display: block;
}

.hero-desc {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 20px;
  line-height: 29px;
  letter-spacing: 0.05em;
  color: #1B1A1A;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 30px;
  height: 64px;
  background: #FE6B32;
  color: #ffffff;
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 20px;
  border: 2px solid transparent;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(254, 107, 50, 0.28);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-hero-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Secondary hero CTA — white pill with orange outline (PDF) */
.btn-hero-yellow {
  background: #FFFFFF;
  color: #FE6B32;
  border: 2px solid #FE6B32;
  box-shadow: none;
}

/* --- Hero Visual (right) --- */
.hero-visual {
  flex: 0 0 560px;
  height: 600px;
  position: relative;
}

.hero-group-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 560px;
  height: auto;
  object-fit: contain;
}

.hero-zoom-badge {
  position: absolute;
  width: 139px;
  height: 123px;
  left: -229px;
  top: 286px;
  z-index: 2;
}

.hero-mascot {
  position: absolute;
  width: 174px;
  height: 174px;
  left: -320px;
  top: 407px;
  z-index: 3;
}

.hero-arrow {
  position: absolute;
  width: 110px;
  height: auto;
  left: -399px;
  top: 404px;
  z-index: 2;
  pointer-events: none;
}

/* ===== ABOUT ===== */
#about {
  width: 100%;
  padding: 74px 0px 154px 190px;
  display: flex;
  flex-direction: column;
  gap: 135px;
  overflow: hidden;
}

.about-text-block {
  display: flex;
  flex-direction: column;
  gap: 65px;
  max-width: 653px;
}

.about-label {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 19px;
  line-height: 28px;
  color: var(--color-black);
}

.about-headline {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 34px;
  line-height: 41px;
  color: var(--color-black);
}

.about-body {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  color: var(--color-black);
  max-width: 653px;
}

.about-banners {
  display: flex;
  flex-direction: row;
  gap: 34px;
  overflow: hidden;
  padding-right: 40px;
}

.about-banner {
  flex-shrink: 0;
  width: 472px;
  height: 266px;
  background: var(--color-bg-gray);
  border-radius: 10px;
  overflow: hidden;
}

.about-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-carousel-nav {
  display: flex;
  gap: 8px;
  align-self: flex-start;
  padding-left: 956px;
  margin-top: -80px;
}

/* ===== LOGO MARQUEE ===== */
#logo-marquee {
  width: 100%;
  background: var(--color-white);
  padding: 40px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 20s linear infinite;
  width: max-content;
}

.marquee-track img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SERVICES ===== */
#services {
  width: 100%;
  padding: 80px 0 100px;
  background: var(--color-white);
}

.services-header {
  margin-bottom: 60px;
  position: relative;
}

.services-grid {
  padding: 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* Right-side 2×2 sub-grid */
.services-right-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Featured (first) service — vertical, large */
.service-item--featured {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-item--featured .service-image {
  width: 100%;
  height: 340px;
  background: #636363;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.service-item--featured .service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-item--featured .service-title {
  font-size: 26px;
}

/* Right-grid items — horizontal (image left, text right) */
.service-item {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
}

.service-image {
  width: 150px;
  height: 106px;
  background: #636363;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.service-eyebrow {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  color: #FE6B32;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  color: var(--color-dark);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  font-family: var(--font-ja);
  font-size: 14px;
  color: #666;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-dark);
  margin-top: 4px;
  cursor: pointer;
  border-bottom: 1px solid var(--color-dark);
  padding-bottom: 2px;
  width: fit-content;
  transition: opacity 0.2s;
}

.service-link:hover { opacity: 0.6; }

.service-desc {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.7;
  color: #555;
}

.service-item--featured .service-desc {
  font-size: 15px;
}

.services-cta {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  padding-top: 20px;
}

/* ===== WORKS ===== */
#works {
  width: 100%;
  background: var(--color-bg-light);
  padding: 69px 0 100px;
  position: relative;
  overflow: hidden;
}

.works-header {
  margin-bottom: 60px;
  position: relative;
}

.works-header .heading-line-bold,
.services-header .heading-line-bold,
.blog-header .heading-line-bold {
  position: absolute;
  width: 162px;
  height: 3px;
  background: var(--color-black);
  left: 190px;
  top: 31px;
}

.works-slider {
  position: relative;
  padding: 0 80px;
}

.works-track {
  display: flex;
  gap: 34px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.works-track::-webkit-scrollbar { display: none; }

.work-item {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex-shrink: 0;
  width: 476px;
}

.work-link {
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: opacity 0.2s ease;
}

.work-link:hover {
  opacity: 0.8;
}

.work-image {
  width: 100%;
  height: 268px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-bg-gray);
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-title {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 26px;
  line-height: 38px;
  letter-spacing: 0.02em;
  color: var(--color-dark);
}

.work-tags {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.work-tag {
  padding: 0 12px;
  height: 36px;
  background: var(--color-white);
  border-radius: 20px;
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 17px;
  line-height: 36px;
  color: var(--color-dark);
  white-space: nowrap;
}

.works-nav {
  position: absolute;
  top: 134px; /* 画像高さ268pxの中央 */
  transform: translateY(-50%);
  left: 55px;  /* 80px padding - 25px(ボタン半径) = トラック左端に中央合わせ */
  right: 55px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.works-nav .nav-btn {
  pointer-events: all;
}

.works-cta {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

/* ===== MEMBER ===== */
#member {
  width: 100%;
  background: var(--color-bg-medium);
  padding: 69px 0 100px;
  position: relative;
}

.member-header {
  margin-bottom: 60px;
  position: relative;
}

.member-header .heading-line-bold {
  position: absolute;
  width: 162px;
  height: 3px;
  background: var(--color-black);
  left: 190px;
  top: 31px;
}

.member-intro {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 24px;
  line-height: 40px;
  color: var(--color-black);
  padding: 0 190px;
  margin-bottom: 60px;
}

.member-grid {
  display: flex;
  gap: 40px;
  padding: 0 94px;
  justify-content: center;
  flex-wrap: wrap;
}

.member-card {
  width: 378px;
  flex-shrink: 0;
}

.member-photo {
  width: 100%;
  height: 375px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-bg-gray);
}

.member-card.featured .member-photo {
  height: 495px;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card-body {
  margin-top: 18px;
}

.member-role {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.member-name {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--color-dark);
}

.member-romanized {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #666;
  margin-top: 2px;
}

.member-description {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  margin-top: 14px;
}

.member-cta {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

/* ===== MEMBER ARCHIVE ===== */
.member-archive-hero {
  background: var(--color-bg-medium);
  padding: 72px 0 90px;
}

/* 見出しは .section-heading に統一（extra.css の「下層ページ 見出し統一」を参照） */

.member-archive-grid {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 88px;
}

.member-archive-card {
  min-height: 204px;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: var(--color-white);
  border-radius: 14px;
  padding: 16px 16px 18px;
}

.member-archive-photo {
  width: 156px;
  height: 180px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--color-bg-gray);
}

.member-archive-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.member-archive-body {
  min-width: 0;
  padding-top: 2px;
}

.member-archive-romanized {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
  color: var(--color-black);
}

.member-archive-body h2 {
  font-family: var(--font-ja);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.35;
  color: var(--color-black);
  letter-spacing: 0;
  margin-top: 1px;
}

.member-archive-role {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-black);
  margin-top: 5px;
}

.member-archive-description {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.8;
  color: var(--color-black);
  margin-top: 10px;
}

.member-archive-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 24px;
  padding: 0 22px 0 14px;
  border-radius: 999px;
  background: #fe6b32;
  color: var(--color-white);
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  position: relative;
  margin-top: 12px;
  float: right;
}

.member-archive-detail::after {
  content: '→';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.member-archive-visual {
  background: var(--color-white);
  padding: 78px 24px 0;
  display: flex;
  justify-content: center;
}

.member-archive-visual img {
  width: min(560px, 88vw);
  height: auto;
}

/* ===== BLOG ===== */
#blog {
  width: 100%;
  background: var(--color-white);
  padding: 69px 0 100px;
  position: relative;
}

.blog-header {
  margin-bottom: 60px;
  position: relative;
}

.blog-slider {
  position: relative;
  padding: 0 47px;
}

.blog-track {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.blog-track::-webkit-scrollbar { display: none; }

.blog-item {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex-shrink: 0;
  width: 424px;
}

.blog-image {
  width: 100%;
  height: 268px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-bg-gray);
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-title {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 26px;
  line-height: 38px;
  letter-spacing: 0.02em;
  color: var(--color-dark);
}

.blog-date {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 17px;
  line-height: 36px;
  color: var(--color-dark);
}

.blog-nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 0 47px;
  margin-top: 20px;
}

.blog-cta {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

/* ===== MEDIA ===== */
#media {
  width: 100%;
  background: var(--color-white);
  padding: 69px 0 100px;
  border-top: 1px solid var(--color-bg-gray);
}

.media-header {
  margin-bottom: 60px;
  position: relative;
}

.media-header .heading-line-bold {
  position: absolute;
  width: 162px;
  height: 3px;
  background: var(--color-black);
  left: 190px;
  top: 171px;
}

.media-content {
  display: flex;
  gap: 80px;
  padding: 0 149px;
  align-items: center;
}

.media-image {
  width: 417px;
  flex-shrink: 0;
}

.media-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.spotify-card {
  display: block;
  width: 100%;
  max-width: 417px;
  padding: 18px;
  background: #FF9E35;
  border-radius: 26px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.spotify-card:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

.spotify-card-frame {
  background: #66390F;
  border-radius: 14px;
  padding: 18px 18px 16px;
}

.spotify-card-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255,255,255,0.16);
  margin-bottom: 16px;
}

.spotify-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotify-card-body {
  color: var(--color-white);
}

.spotify-card-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.spotify-card-author {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  opacity: 0.9;
}

.spotify-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
}

.spotify-card-brand::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center 7px / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center 11px / 16px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center 15px / 12px 2px no-repeat;
}

.media-links {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.media-link-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.media-play-btn {
  width: 37px;
  height: 37px;
  background: var(--color-circle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.media-play-btn::after {
  content: '▶';
  color: var(--color-white);
  font-size: 14px;
  margin-left: 2px;
}

.media-text-link {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 30px;
  line-height: 43px;
  color: var(--color-black);
  border-bottom: 1px solid var(--color-black);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.media-text-link:hover {
  opacity: 0.7;
}

/* ===== WEBINAR / EVENT ===== */
#events {
  width: 100%;
  background: var(--color-white);
  padding: 69px 0 100px;
  border-top: 1px solid var(--color-bg-gray);
}

.events-header {
  margin-bottom: 60px;
  position: relative;
}

.events-header .heading-line-bold {
  position: absolute;
  width: 162px;
  height: 3px;
  background: var(--color-black);
  left: 190px;
  top: 171px;
}

.events-schedule-bar {
  margin: 0 190px 40px;
  height: 124px;
  background: var(--color-bg-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  overflow: hidden;
}

.events-featured-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.events-featured-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.events-schedule-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.events-track {
  display: flex;
  gap: 40px;
  padding: 0 47px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.events-track::-webkit-scrollbar { display: none; }

.event-item {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex-shrink: 0;
  width: 424px;
}

.event-image {
  width: 100%;
  height: 268px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-bg-gray);
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-title {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 26px;
  line-height: 38px;
  letter-spacing: 0.02em;
  color: var(--color-dark);
}

.event-date {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 17px;
  line-height: 36px;
  color: var(--color-dark);
}

.events-nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 0 47px;
  margin-top: 20px;
}

.events-cta {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

/* ===== NEWS ===== */
#news {
  width: 100%;
  background: var(--color-white);
  padding: 69px 0 134px;
  border-top: 1px solid var(--color-bg-gray);
}

.news-header {
  margin-bottom: 60px;
  position: relative;
}

.news-header .heading-line-bold {
  position: absolute;
  width: 162px;
  height: 3px;
  background: var(--color-black);
  left: 190px;
  top: 171px;
}

.news-list {
  padding: 0 190px;
  display: flex;
  flex-direction: column;
  gap: 62px;
}

.news-item {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  border-bottom: 1px solid var(--color-bg-gray);
  padding-bottom: 40px;
}

.news-thumb {
  width: 240px;
  height: 171px;
  background: var(--color-bg-gray);
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.news-meta {
  display: flex;
  gap: 18px;
  align-items: center;
}

.news-category {
  padding: 6px 28px;
  background: var(--color-bg-gray);
  border-radius: 50px;
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 24px;
  line-height: 35px;
  text-align: center;
  color: #1A1A1A;
}

.news-date {
  padding: 6px 28px;
  background: var(--color-white);
  border-radius: 50px;
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 24px;
  line-height: 35px;
  text-align: center;
  color: #1A1A1A;
  border: 1px solid var(--color-bg-gray);
}

.news-title {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 28px;
  line-height: 41px;
  color: var(--color-black);
}

.news-detail-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
}

.news-detail-link .link-text {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 22px;
  line-height: 32px;
  color: var(--color-black);
  border-bottom: 1px solid var(--color-black);
  transition: opacity 0.2s ease;
}

.news-detail-link:hover .link-text {
  opacity: 0.7;
}

/* ===== CTA BAND ===== */
#cta-band {
  width: 100%;
  background: #FE6B32;
  padding: 74px 16px;
  display: flex;
  justify-content: center;
}

.cta-band-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
}

/* ===== FOOTER ===== */
#site-footer {
  width: 100%;
  background: #FFFFFF;
  padding: 48px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  transition: opacity 0.2s ease;
}

.footer-social a:hover {
  opacity: 0.6;
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-nav-link {
  font-family: var(--font-ja);
  font-size: 14px;
  color: var(--color-dark);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-nav-link:hover {
  opacity: 0.6;
}

.footer-copy {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  text-align: center;
  color: var(--color-dark);
}

/* ===== Hamburger Mobile ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: all 0.3s ease;
}

/* ===== cv-btn-large variants ===== */
/* サービス一覧を見る — white pill, orange outline + orange label/arrow (PDF) */
.cv-btn-large-orange {
  background: #FFFFFF;
  border: 2px solid #FE6B32;
}

.cv-btn-large-orange span {
  color: #FE6B32;
}

.cv-btn-large-orange::after {
  color: #FE6B32;
}

.cv-btn-large-dark {
  background: #1B1A1A;
}

.cv-btn-large-outline {
  background: transparent;
  border: 2px solid var(--color-dark);
}

.cv-btn-large-outline span {
  color: var(--color-dark);
}

.cv-btn-large-outline::after {
  color: var(--color-dark);
}

/* 開催予定のイベントを見る — white pill on orange band, orange label/arrow (PDF) */
.cv-btn-large-light {
  background: #FFFFFF;
}

.cv-btn-large-light span {
  color: #FE6B32;
}

.cv-btn-large-light::after {
  color: #FE6B32;
}

/* ===== MEDIA PANELS ===== */
.media-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.media-card {
  width: 100%;
}

.youtube-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.youtube-card-thumb {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-gray);
  transition: opacity 0.2s ease;
}

.youtube-card-thumb:hover {
  opacity: 0.85;
}

.youtube-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-card-caption {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-family: var(--font-ja);
  font-size: 11px;
  line-height: 1.4;
  color: var(--color-white);
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  padding: 16px 8px 6px;
}

.media-panel-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.media-panel-label {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.media-panel-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.45;
  color: var(--color-dark);
}

.media-panel-desc {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  color: #555;
}

/* Podcast / Youtube — outline pill with dark play-icon circle (PDF) */
.media-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  color: var(--color-dark);
  background: transparent;
  border: 1.5px solid var(--color-dark);
  border-radius: 999px;
  padding: 11px 16px 11px 28px;
  width: fit-content;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.media-panel-link::after {
  content: '▶';
  width: 28px;
  height: 28px;
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding-left: 2px;
  flex-shrink: 0;
}

.media-panel-link:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

/* ===== NEWS VISUAL ===== */
.news-visual {
  margin-top: 60px;
  padding: 0 190px;
}

.news-visual img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ===== CTA BAND CARDS ===== */
.cta-band-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 48px;
  background: var(--color-white);
  border-radius: 16px;
  flex: 1;
  min-width: 280px;
}

.cta-band-card-title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.4;
  color: var(--color-dark);
  text-align: center;
}

.cta-band-card-desc {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  flex: 1;
  text-align: center;
}

.cta-band-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 36px;
  background: #FE6B32;
  color: var(--color-white);
  border-radius: 50px;
  font-family: var(--font-ja);
  font-weight: 600;
  font-size: 16px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.cta-band-card-button:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* お問い合わせ (first card) — yellow fill (PDF) */
#cta-band .cta-band-card:first-child .cta-band-card-button {
  background: #FDBA31;
}

/* 無料相談 — white pill, orange outline + orange label (PDF) */
.cta-band-card-button-outline {
  background: transparent;
  border: 2px solid #FE6B32;
  color: #FE6B32;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-animate .fade-in {
  opacity: 0;
  transform: translateY(20px);
}

.js-animate .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  :root {
    --content-padding: 0 80px;
  }

  .section-heading {
    padding-left: 80px;
  }

  .section-heading .en-title {
    font-size: 14px;
  }

  .about-text-block {
    max-width: 100%;
    padding-right: 80px;
  }

  .services-grid {
    padding: 0 40px;
    gap: 24px;
  }

  .services-right-grid {
    gap: 16px;
  }

  .service-item--featured .service-image {
    height: 260px;
  }

  .member-intro {
    padding: 0 80px;
  }

  .member-archive-grid {
    gap: 40px;
  }

  .member-archive-card {
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 18px;
  }

  .member-archive-photo {
    width: 138px;
    height: 166px;
  }

  .news-list {
    padding: 0 80px;
  }
}

@media (max-width: 900px) {
  #site-header {
    padding: 16px 24px;
    height: auto;
  }

  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .mobile-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    background: #FE6B32;
    color: #ffffff;
    font-family: var(--font-ja);
    font-weight: 700;
    font-size: 11px;
    border-radius: 50px;
    white-space: nowrap;
    text-decoration: none;
    transition: opacity 0.2s ease;
  }

  .mobile-header-cta:hover {
    opacity: 0.85;
  }

  #site-header .header-nav {
    gap: 10px;
  }

  #hero {
    min-height: auto;
  }

  .hero-inner {
    flex-direction: column;
    padding: 32px 24px 60px;
    gap: 24px;
  }

  .hero-text {
    padding-top: 0;
    width: 100%;
  }

  .hero-sub {
    font-size: 28px;
    line-height: 1.4;
  }

  .hero-highlight {
    font-size: 60px;
    line-height: 1.2;
  }

  .hero-headline-no {
    font-size: 48px;
    line-height: 1.2;
  }

  .hero-headline-pro {
    font-size: 60px;
    line-height: 1.2;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-cta {
    gap: 16px;
  }

  .btn-hero-primary {
    font-size: 16px;
    height: 52px;
    padding: 14px 24px;
  }

  .hero-visual {
    flex: none;
    width: 100%;
    height: 300px;
  }

  .hero-group-photo {
    position: relative;
    width: 100%;
    height: 300px;
    object-fit: contain;
    object-position: center top;
  }

  .hero-zoom-badge,
  .hero-mascot,
  .hero-arrow {
    display: none;
  }

  .hero-bg-decor {
    display: none;
  }

  #about {
    padding: 60px 24px;
  }

  .about-banners {
    overflow-x: auto;
    padding-right: 24px;
  }

  .about-banner {
    width: 300px;
    height: 170px;
  }

  .section-heading {
    padding-left: 24px;
  }

  .section-heading .en-title {
    font-size: 14px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 40px;
  }

  .services-right-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-item {
    flex-direction: column;
    width: 100%;
  }

  .service-image {
    width: 100%;
    height: 200px;
  }

  .news-visual {
    padding: 0 24px;
  }

  .cta-band-card {
    padding: 28px 24px;
    min-width: auto;
  }

  .works-track,
  .blog-track,
  .events-track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .work-item,
  .blog-item,
  .event-item {
    width: 320px;
  }

  .member-grid {
    padding: 0 24px;
    justify-content: center;
  }

  .member-archive-hero {
    padding: 56px 0 64px;
  }

  .member-archive-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 24px;
  }

  .member-archive-card {
    max-width: 520px;
    margin: 0 auto;
  }

  .member-archive-visual {
    padding-top: 54px;
  }

  .member-card,
  .member-card.featured {
    width: 100%;
    max-width: 400px;
  }

  .media-content {
    flex-direction: column;
    padding: 0 24px;
  }

  .media-image {
    width: 100%;
  }

  .news-list {
    padding: 0 24px;
  }

  .news-item {
    flex-direction: column;
  }

  .news-thumb {
    width: 100%;
    height: 200px;
  }

  .cv-btn-large span {
    font-size: 22px;
  }

  .cta-band-inner {
    flex-direction: column;
    gap: 16px;
  }

  .member-intro {
    padding: 0 24px;
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  .member-archive-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
  }

  .member-archive-photo {
    width: 112px;
    height: 140px;
  }

  .member-archive-body h2 {
    font-size: 19px;
  }

  .member-archive-description {
    font-size: 10px;
    line-height: 1.65;
  }
}


/* =========================================================
   事例紹介 / 記事ページ（single.php）
   SWELLテーマの実CSS（swell.zip）から抽出した値で装飾を再現
   ブランド主色: --color_main #ff5a28 / 赤ボタン #f74a4a
   ========================================================= */
.single-post {
  --color_main: #ff5a28;
  --color_border: hsla(0,0%,78%,.5);
  --color_gray: hsla(0,0%,78%,.15);
  --color_text: #333;
}

/* --- 記事ヘッダー --- */
.single-post .post-cat-list { margin-bottom: 16px; }
.single-post .post-cat-link {
  display: inline-block;
  font-family: var(--font-ja);
  font-size: 13px;
  font-weight: 700;
  color: #ff5a28;
  text-decoration: none;
  padding: 3px 12px;
  border: 1px solid #ff5a28;
  border-radius: 4px;
  margin-right: 8px;
}
.single-post .post-ttl {
  font-family: var(--font-ja);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-dark);
  margin: 0 0 14px;
}
.single-post .post-times {
  display: flex;
  gap: 18px;
  font-family: var(--font-ja);
  font-size: 13px;
  color: #999;
  margin-bottom: 36px;
}
.single-post .post-time--posted::before { content: "公開日 "; }
.single-post .post-time--modified::before { content: "更新日 "; }

.single-post .post-thumb {
  margin: 0 0 44px;
  border-radius: 8px;
  overflow: hidden;
}
.single-post .post-thumb img { display: block; width: 100%; height: auto; }

/* --- 本文ベース --- */
.post_content {
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.95;
  color: var(--color-dark);
}
.post_content p { margin: 0 0 1.6em; }
.post_content strong { font-weight: 700; }
.post_content a { color: #ff5a28; }
.post_content img { max-width: 100%; height: auto; }

/* --- 目次（.p-toc.-double） SWELL build/css/modules/parts/toc--double.css --- */
.post_content .p-toc {
  margin: 4em auto;
  max-width: 800px;
}
.post_content .p-toc.-double {
  background: hsla(0,0%,78%,.15);
  background: linear-gradient(-45deg,transparent 25%,hsla(0,0%,78%,.15) 25%,hsla(0,0%,78%,.15) 50%,transparent 50%,transparent 75%,hsla(0,0%,78%,.15) 75%,hsla(0,0%,78%,.15));
  background-clip: padding-box;
  background-size: 4px 4px;
  border-top: 4px double hsla(0,0%,78%,.5);
  border-bottom: 4px double hsla(0,0%,78%,.5);
  padding: 2em;
}
.post_content .p-toc__ttl {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1;
  margin-bottom: .75em;
}
.post_content .p-toc__ttl::before {
  content: "";
  display: inline-block;
  width: .9em;
  height: .9em;
  margin-right: .5em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v2H3zm0 6h18v2H3zm0 6h18v2H3z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v2H3zm0 6h18v2H3zm0 6h18v2H3z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.post_content .p-toc__list {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding-left: 0;
}
.post_content .p-toc__list > li { line-height: 1.6; }
.post_content .p-toc__list > li + li { margin-top: .5em; }
.post_content .p-toc__item { counter-increment: toc; }
.post_content .p-toc__link {
  display: flex;
  align-items: baseline;
  gap: .25em;
  color: inherit;
  text-decoration: none;
  font-size: inherit;
}
.post_content .p-toc__link::before {
  content: counter(toc) "｜";
  color: #ff5a28;
  font-weight: 700;
  flex-shrink: 0;
}
.post_content .p-toc__link:hover { opacity: .8; }

/* --- 見出し h2（オレンジ帯＋白文字＋上下2px枠） live インラインCSS再現 --- */
.post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)),
.post_content h2.wp-block-heading:not([class*="swell-block-"]) {
  position: relative;
  z-index: 1;
  font-family: var(--font-ja);
  font-size: 1.4em;
  line-height: 1.4;
  font-weight: 700;
  margin: 4em 0 2em;
  background: #ff5a28;
  color: #fff;
  padding: .75em 1em;
}
.post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before,
.post_content h2.wp-block-heading:not([class*="swell-block-"])::before {
  position: absolute;
  display: block;
  pointer-events: none;
  content: "";
  top: -4px;
  left: 0;
  width: 100%;
  height: calc(100% + 4px);
  box-sizing: content-box;
  border-top: solid 2px #ff5a28;
  border-bottom: solid 2px #ff5a28;
}
.post_content h2 strong { font-weight: 700; color: inherit; }
.post_content h2 { scroll-margin-top: 100px; }

.post_content h3.wp-block-heading {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--color-dark);
  border-left: 4px solid #ff5a28;
  padding-left: 12px;
  margin: 2.5em 0 1em;
}

/* --- 会社情報（wp-block-media-text コア） --- */
.post_content .wp-block-media-text {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 36px;
  align-items: center;
  margin: 36px 0 44px;
}
.post_content .wp-block-media-text__media { margin: 0; }
.post_content .wp-block-media-text__media img { width: 100%; height: auto; }
.post_content .wp-block-media-text__content p { margin: 0 0 6px; font-size: 15px; line-height: 1.8; }

/* --- 矢印リスト（swell-block-linkList） build/gutenberg/blocks/link-list --- */
.post_content .swell-block-linkList {
  --the-color: #ff5a28;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75em;
  margin: 14px 0 28px;
  padding: 0;
}
.post_content .swell-block-linkList__item { margin: 0; width: 100%; }
.post_content .swell-block-linkList__link {
  display: flex;
  align-items: center;
  gap: .25em;
  line-height: 1.4;
  color: inherit;
  text-decoration: none;
  cursor: default;
}
.post_content .swell-block-linkList__text { margin-right: auto; }
.post_content .swell-block-linkList__icon {
  flex: 0 0 auto;
  font-size: 1.25em;
  width: 1em;
  height: 1em;
  color: #ff5a28;
  fill: #ff5a28;
}
.post_content .swell-block-linkList__icon path { fill: #ff5a28; }

/* --- 画像ブロック --- */
.post_content .wp-block-image { margin: 36px auto; text-align: center; }
.post_content .wp-block-image img { max-width: 100%; height: auto; border-radius: 4px; }

/* --- 2カラム（wp-block-columns コア） --- */
.post_content .wp-block-columns {
  display: flex;
  gap: 24px;
  margin: 48px 0;
  flex-wrap: wrap;
}
.post_content .wp-block-column { flex: 1; min-width: 240px; }

/* --- CTAボタン（swell-block-button / is-style-btn_solid / red_） main.css再現 --- */
.post_content .swell-block-button { text-align: center; }
.post_content [class*="is-style-btn_"] {
  --the-fz: 1em;
  --the-width: auto;
  --the-min-width: 100%;
  --the-padding: 1em 1.5em;
  --the-btn-color: var(--color_main, #ff5a28);
  --the-btn-bg: var(--the-btn-color);
  --the-btn-radius: 80px;
  display: block;
  font-size: var(--the-fz);
  margin: 0 auto 2em;
  position: relative;
  text-align: center;
}
.post_content .swell-block-button.red_ {
  --the-btn-color: #f74a4a;
  --the-btn-bg: #f74a4a;
  --the-solid-shadow: rgba(185,56,56,1);
}
.post_content [class*="is-style-btn_"] .swell-block-button__link,
.post_content [class*="is-style-btn_"] a {
  display: inline-block;
  min-width: var(--the-min-width);
  width: var(--the-width);
  padding: var(--the-padding);
  background: var(--the-btn-bg);
  border-radius: var(--the-btn-radius, 0);
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.5;
  text-decoration: none;
  position: relative;
}
.post_content [class*="is-style-btn_"].-size-l { --the-min-width: 100%; --the-padding: 1em 1.5em; }
.post_content .is-style-btn_solid { -webkit-transform: translateY(-2px); transform: translateY(-2px); }
.post_content .is-style-btn_solid .swell-block-button__link,
.post_content .is-style-btn_solid a {
  box-shadow: 0 4px 0 var(--the-solid-shadow, rgba(185,56,56,1));
  transition: transform .25s, box-shadow .25s;
}
.post_content .is-style-btn_solid .swell-block-button__link:hover,
.post_content .is-style-btn_solid a:hover {
  box-shadow: 0 0 0 transparent !important;
  transform: translate3d(0,4px,0);
}

/* --- 記事ナビ --- */
.single-post .post-nav a {
  color: var(--color-dark);
  text-decoration: none;
  font-family: var(--font-ja);
  font-size: 14px;
}
.single-post .post-nav a:hover { color: #ff5a28; }

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  /* WordPressはbodyにも single-post クラスを付けるため、記事ラッパーのdivだけに限定する
     （body側に効くとページ全体に左右余白が入り、stickyヘッダーが縮んでナビがはみ出す） */
  .container.single-post { padding: 56px 20px !important; }
  .single-post .post-ttl { font-size: 22px; }
  .post_content .wp-block-media-text,
  .post_content .wp-block-columns { display: block; }
  .post_content .wp-block-media-text__media { max-width: 200px; margin: 0 auto 20px; }
  .post_content .wp-block-column { margin-bottom: 16px; }
  .post_content .p-toc.-double { padding: 1.5em 1em 1em; }
}
