/* ============================================================
   Minacle Design Office / Profile Page CSS
   固定ページ個別CSS用
   page-id: 237
   最終更新: 2026-06-25
   ============================================================ */

/* ------------------------------------------------------------
   共通：セクションinner・見出しリセット
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-profile-section-inner {
  max-width: 900px;
  margin-inline: auto;
}

.md-page.ag-custom-page.ag-profile-page h2,
.md-page.ag-custom-page.ag-profile-page h3 {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
}

/* ------------------------------------------------------------
   01. Hero（水色→白グラデーション・左右2カラム）
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-profile-hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 24px clamp(56px, 8vw, 100px);
  background: linear-gradient(180deg, var(--md-color-primary-50) 0%, var(--md-color-neutral-0) 100%);
  overflow: hidden;
}

.md-page.ag-custom-page .ag-profile-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
  max-width: 900px;
  margin-inline: auto;
}

/* 左カラム：アイコン */
.md-page.ag-custom-page .ag-profile-hero-img {
  margin: 0;
  order: -1;
}
.md-page.ag-custom-page .ag-profile-hero-img .ag-plan-row-img-wrap {
  padding: 0;
}
.md-page.ag-custom-page .ag-profile-hero-img .ag-plan-row-img-inner {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(111, 145, 168, 0.2);
}
.md-page.ag-custom-page .ag-profile-hero-img p,
.md-page.ag-custom-page .ag-profile-hero-name {
  text-align: center;
  font-size: 0.78rem;
  color: var(--md-color-text-soft);
  letter-spacing: 0.08em;
  margin-top: 20px !important;
}

.md-page.ag-custom-page .ag-profile-hero-links a {
  font-size: 0.85rem;
  color: var(--md-color-primary-400);
  text-decoration: none;
  border-bottom: 1px solid var(--md-color-primary-200);
  padding-bottom: 2px;
  letter-spacing: 0.06em;
}

/* 右カラム：テキスト */
.md-page.ag-custom-page .ag-profile-hero .ag-script {
  display: block;
  text-align: left;
}
.md-page.ag-custom-page .ag-profile-hero h1 {
  margin: 0 0 8px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--md-color-primary-400);
  text-align: left;
}
.md-page.ag-custom-page .ag-profile-hero-subtitle {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--md-color-primary-400);
  letter-spacing: 0.1em;
  margin: 0 0 20px;
}
.md-page.ag-custom-page .ag-profile-hero-body {
  text-align: left;
  margin: 0;
}
.md-page.ag-custom-page .ag-profile-hero-body p {
  margin: 0 0 16px;
  color: var(--md-color-text);
  font-size: 1rem;
  line-height: 2;
}
.md-page.ag-custom-page .ag-profile-hero-body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------
   02. Story（ベージュ背景）
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-profile-story {
  background: var(--md-color-warm-bg, #F7F2EA);
  padding: clamp(56px, 8vw, 100px) 24px;
}
.md-page.ag-custom-page .ag-profile-story h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--md-color-warm-text);
  line-height: 1.65;
}
.md-page.ag-custom-page .ag-profile-story .ag-section-head {
  margin-bottom: 32px;
}

/* 写真 */
.md-page.ag-custom-page .ag-profile-story-img {
  max-width: 900px;
  margin: 0 auto 40px;
}
.md-page.ag-custom-page .ag-profile-story-img .ag-plan-row-img-wrap {
  padding: 0;
}
.md-page.ag-custom-page .ag-profile-story-img .ag-plan-row-img-wrap::before {
  content: none;
}
.md-page.ag-custom-page .ag-profile-story-img .ag-plan-row-img-inner {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--md-shadow-card);
  height: auto !important;
  aspect-ratio: unset !important;
}
.md-page.ag-custom-page .ag-profile-story-img .ag-plan-row-img-inner img {
  width: 100%;
  height: auto !important;
  object-fit: unset !important;
  display: block;
}

.md-page.ag-custom-page .ag-profile-story-img-inner {
  background: none;
  padding: 0;
  border-radius: var(--md-radius-panel, 16px);
  overflow: hidden;
  box-shadow: var(--md-shadow-card, 0 18px 48px rgba(111, 145, 168, 0.12));
}

.md-page.ag-custom-page .ag-profile-story-img-inner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

/* 本文 */
.md-page.ag-custom-page .ag-profile-story-text {
  max-width: 900px;
  margin-inline: auto;
}
.md-page.ag-custom-page .ag-profile-story-text p {
  margin: 0 0 16px;
  color: var(--md-color-warm-text);
  font-size: 1rem;
  line-height: 2;
}
.md-page.ag-custom-page .ag-profile-story-text p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------
   03. Who I'm for（水色背景・白い角丸カード・中央寄せ）
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-profile-whois {
  background: var(--md-color-primary-50);
  padding: clamp(56px, 8vw, 100px) 24px;
}
.md-page.ag-custom-page .ag-profile-whois .ag-profile-section-inner {
  max-width: 900px;
  margin-inline: auto;
  background: var(--md-color-neutral-0);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 64px) clamp(32px, 5vw, 56px);
  box-shadow: 0 8px 32px rgba(111, 145, 168, 0.10);
}
.md-page.ag-custom-page .ag-profile-whois .ag-section-head {
  text-align: center;
}
.md-page.ag-custom-page .ag-profile-whois h2 {
  margin: 0 0 28px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--md-color-primary-400);
  line-height: 1.65;
}
.md-page.ag-custom-page .ag-profile-whois .ag-script {
  color: var(--md-color-primary-400) !important;
}
.md-page.ag-custom-page .ag-profile-whois .ag-script::before,
.md-page.ag-custom-page .ag-profile-whois .ag-script::after {
  color: var(--md-color-primary-400) !important;
}
.md-page.ag-custom-page .ag-profile-whois .ag-profile-story-text {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.md-page.ag-custom-page .ag-profile-whois .ag-profile-story-text p {
  color: var(--md-color-text);
  font-size: 1rem;
  line-height: 2;
  text-align: center;
  margin: 0 0 16px;
}
.md-page.ag-custom-page .ag-profile-whois .ag-profile-story-text p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------
   04. My Path（タイムライン）
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-profile-path {
  background: var(--md-color-neutral-0);
  padding: clamp(56px, 8vw, 100px) 24px;
}
.md-page.ag-custom-page .ag-profile-path h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--md-color-primary-400);
  line-height: 1.65;
}
.md-page.ag-custom-page .ag-profile-path .ag-section-head {
  margin-bottom: 40px;
}

/* 2カラムレイアウト */
.md-page.ag-custom-page .ag-profile-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 900px;
  margin: 32px auto 0;
}

/* 左：プロフィールカード */
.md-page.ag-custom-page .ag-profile-card {
  position: sticky;
  top: 80px;
  text-align: center;
  padding: 28px 16px;
  background: var(--md-color-primary-50);
  border-radius: 16px;
}

.md-page.ag-custom-page .ag-profile-photo {
  width: 130px;
  height: 130px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--md-color-neutral-50);
  box-shadow: 0 18px 48px rgba(111, 145, 168, 0.15);
}
.md-page.ag-custom-page .ag-profile-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* 右：タイムライン */
.md-page.ag-custom-page .ag-profile-timeline {
  position: relative;
  padding-left: 72px !important;
}
.md-page.ag-custom-page .ag-profile-timeline::before {
  content: "";
  position: absolute;
  left: 23px !important;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(111, 145, 168, 0.35) 8%,
    rgba(111, 145, 168, 0.35) 92%,
    transparent 100%
  );
}
.md-page.ag-custom-page .ag-tl-item {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 36px;
}
.md-page.ag-custom-page .ag-tl-item:last-child { margin-bottom: 0; }

.md-page.ag-custom-page .ag-tl-icon {
  position: absolute;
  left: -72px !important;
  top: 0 !important;
  width: 48px !important;
  height: 48px !important;
  background: var(--md-color-primary-50);
  border: 1px solid var(--md-color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--md-color-primary-400);
  box-shadow: 0 0 0 4px var(--md-color-neutral-0);
}
.md-page.ag-custom-page .ag-tl-icon svg {
  width: 22px !important;
  height: 22px !important;
}
.md-page.ag-custom-page .ag-tl-title {
  margin: 0 0 10px !important;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.15rem !important;
  font-weight: 500;
  color: var(--md-color-primary-400);
  letter-spacing: 0.04em;
  line-height: 1.6;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.md-page.ag-custom-page .ag-tl-text {
  margin: 0;
  font-size: 1rem !important;
  color: var(--md-color-text);
  line-height: 2 !important;
}

/* 現在の項目を強調 */
.md-page.ag-custom-page .ag-tl-item--now .ag-tl-icon {
  background: var(--md-color-primary-400);
  border-color: var(--md-color-primary-400);
  color: var(--md-color-neutral-0);
}

/* 学び続けていること */
.md-page.ag-custom-page .ag-profile-learning {
  max-width: 900px;
  margin: 56px auto 0;
  padding: 28px clamp(20px, 4vw, 36px);
  background: var(--md-color-neutral-50);
  border-radius: 12px;
}
.md-page.ag-custom-page .ag-profile-learning .ag-plan-sub-heading {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 20px;
}
.md-page.ag-custom-page .ag-profile-learning .ag-plan-sub-heading svg {
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0 !important;
  background: var(--md-color-primary-50);
  border: 1px solid var(--md-color-border);
  border-radius: 50%;
  padding: 10px;
  box-sizing: content-box;
  color: var(--md-color-primary-400);
}
.md-page.ag-custom-page .ag-profile-learning .ag-plan-sub-heading span:not(.ag-heading-line) {
  font-size: 1.15rem !important;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 500;
  color: var(--md-color-primary-400);
  letter-spacing: 0.04em;
}
.md-page.ag-custom-page .ag-profile-learning-text {
  margin: 0 0 12px;
  font-size: 1rem !important;
  color: var(--md-color-text);
  line-height: 2 !important;
}
.md-page.ag-custom-page .ag-profile-learning-text:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------
   05. Final CTA（水色背景）
   ------------------------------------------------------------ */
.md-page.ag-custom-page .ag-profile-final-cta {
  background: var(--md-color-primary-50) !important;
  padding: clamp(64px, 9vw, 110px) 24px;
  text-align: center;
}
.md-page.ag-custom-page .ag-profile-final-cta .ag-script {
  color: var(--md-color-primary-400) !important;
}
.md-page.ag-custom-page .ag-profile-final-cta .ag-script::before,
.md-page.ag-custom-page .ag-profile-final-cta .ag-script::after {
  color: var(--md-color-primary-400) !important;
}
.md-page.ag-custom-page .ag-profile-final-cta h2 {
  margin: 14px 0 24px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--md-color-primary-400) !important;
  line-height: 1.7;
}
.md-page.ag-custom-page .ag-profile-final-cta-body {
  max-width: 600px;
  margin: 0 auto 32px;
}
.md-page.ag-custom-page .ag-profile-final-cta-body p {
  margin: 0 0 16px;
  color: var(--md-color-primary-400) !important;
  font-size: 1rem !important;
  line-height: 2 !important;
}
.md-page.ag-custom-page .ag-profile-final-cta-body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------
   レスポンシブ（768px以下）
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  /* Hero：1カラムに */
  .md-page.ag-custom-page .ag-profile-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }
  .md-page.ag-custom-page .ag-profile-hero-img {
    max-width: 180px;
    margin-inline: auto;
    order: -1;
  }
  .md-page.ag-custom-page .ag-profile-hero .ag-script,
  .md-page.ag-custom-page .ag-profile-hero h1 {
    text-align: center;
  }
  .md-page.ag-custom-page .ag-profile-hero-body {
    text-align: left;
  }

  /* My Path：1カラムに */
  .md-page.ag-custom-page .ag-profile-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .md-page.ag-custom-page .ag-profile-card {
    position: static;
  }
}

/* レスポンシブ（480px以下） */
@media (max-width: 480px) {
  .md-page.ag-custom-page .ag-profile-timeline {
    padding-left: 56px !important;
  }
  .md-page.ag-custom-page .ag-profile-timeline::before {
    left: 15px !important;
  }
  .md-page.ag-custom-page .ag-tl-icon {
    left: -56px !important;
    width: 34px !important;
    height: 34px !important;
  }
  .md-page.ag-custom-page .ag-tl-icon svg {
    width: 16px !important;
    height: 16px !important;
  }
  .md-page.ag-custom-page .ag-profile-photo {
    width: 110px;
    height: 110px;
  }
}
