/* =========================================================
   mikagoto.com スタイル（Studio版のデザインを再現）
   色は :root の変数だけ直せば全体に反映される
   ========================================================= */
:root {
  --ink: #222222;
  --yellow: #f3d926;   /* 旧サイトのCONTACT・APPROACHの黄色 */
  --blue: #4caeef;     /* 旧サイトのフッター・アクセントの青 */
  --white: #ffffff;
  --gray: #f4f4f4;
  --inner: 1180px;
  --en: "Roboto", "Noto Sans JP", sans-serif;
  --ja: "Noto Sans JP", "Hiragino Sans", "äå Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--ja); font-size: 14px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.inner { max-width: var(--inner); margin: 0 auto; padding: 0 40px; }

/* ---------- 見出し（英字の大見出し＋小さな日本語） ---------- */
.section-title { font-family: var(--en); font-weight: 700; font-size: 64px; line-height: 1.1; letter-spacing: .01em; }
.section-title span { display: block; font-family: var(--ja); font-size: 13px; font-weight: 700; margin-top: 10px; letter-spacing: 0; }
.section-title.center { text-align: center; font-size: 44px; }
h1, h2, h3 { word-break: auto-phrase; }
@media (max-width: 900px) { .section-title { font-size: 46px; } .section-title.center { font-size: 36px; } }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 74px;
  display: flex; align-items: center;
  background: rgba(255,255,255,.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.logo { font-family: var(--en); font-weight: 600; font-size: 14px; line-height: 1.1; text-decoration: none; padding-left: 38px; }
.nav { margin-left: auto; display: flex; gap: 32px; padding-right: 72px; }
.nav a { font-family: var(--en); font-weight: 600; font-size: 14px; text-decoration: none; }
.nav a:hover { color: var(--blue); }
.header-contact {
  height: 74px; width: 194px; display: grid; place-items: center;
  background: var(--yellow); font-family: var(--en); font-weight: 600; font-size: 18px; text-decoration: none;
}
.header-contact:hover { filter: brightness(.96); }
@media (max-width: 900px) {
  .nav { display: none; }
  .logo { padding-left: 20px; margin-right: auto; }
  .header, .header-contact { height: 60px; }
  .header-contact { width: 120px; font-size: 15px; }
}

/* ---------- ヒーロー ---------- */
.hero { position: relative; padding-top: 74px; }
.hero-photos { display: grid; grid-template-columns: 1fr 260px; gap: 10px; padding-left: 140px; height: 621px; }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; }
.hero-logo { position: relative; margin: -110px 0 0 140px; width: min(1200px, calc(100% - 160px)); }
.hero-logo img { width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero { padding-top: 60px; }
  .hero-photos { grid-template-columns: 1fr; padding-left: 0; height: 56vw; min-height: 260px; }
  .hero-side { display: none; }
  .hero-logo { margin: -9vw 16px 0; width: calc(100% - 32px); }
}

/* ---------- プロフィール ---------- */
.profile { padding: 60px 0 0; }
.profile-box { max-width: 800px; margin-left: 140px; border-left: 3px solid var(--blue); padding: 4px 0 4px 24px; font-size: 13px; }
.profile-name { font-family: var(--en); font-weight: 600; font-size: 28px; line-height: 1.3; margin-bottom: 12px; }
.profile-name span { font-size: 12px; margin-left: 12px; }
@media (max-width: 900px) { .profile-box { margin: 0 20px; } }

/* ---------- MISSION ---------- */
.mission { position: relative; padding: 130px 0 160px; overflow: hidden; }
.mission-deco { position: absolute; right: 0; top: 40px; width: 608px; pointer-events: none; }
.mission .inner { position: relative; }
.mission-label { font-family: var(--en); font-weight: 700; font-size: 20px; margin-bottom: 36px; }
.mission-title { font-size: 46px; font-weight: 700; line-height: 1.6; margin-bottom: 48px; }
.mission-text { font-size: 19px; font-weight: 700; line-height: 2.1; max-width: 860px; }
@media (max-width: 900px) {
  .mission { padding: 80px 0 100px; }
  .mission .inner { padding: 0 20px; }
  .mission-deco { width: 70%; opacity: .5; top: 0; }
  .mission-title { font-size: 28px; }
  .mission-text { font-size: 15px; }
}

/* ---------- APPROACH ---------- */
.approach { background: var(--yellow); padding: 120px 0 120px; }
.approach-map { position: relative; max-width: 1240px; margin: 40px auto 0; padding: 0 20px; }
.approach-img { width: 1100px; max-width: 100%; margin: 0 auto; padding: 40px 0; }
/* 図の中に文字が入っているので、PCでは文字を画面に出さない（読み上げ用には残す） */
@media (min-width: 1101px) {
  .approach-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.approach-list li { text-align: left; }
.approach-list h3 { font-family: var(--en); font-weight: 700; font-size: 36px; line-height: 1.2; }
.approach-list .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--yellow); font-size: 20px; margin-right: 10px; vertical-align: 5px;
}
.ap-sub { font-weight: 700; font-size: 16px; margin: 6px 0 8px; }
.approach-list p:not(.ap-sub) { font-size: 13px; line-height: 1.8; }
@media (max-width: 1100px) {
  .approach { padding: 80px 0; }
  .approach .inner { padding: 0 20px; }
  .approach-list { display: grid; gap: 28px; margin-top: 8px; }
  .approach-list li { position: static; width: auto; text-align: left; background: rgba(255,255,255,.55); padding: 20px; }
  .approach-list h3 { font-size: 26px; }
}

/* ---------- PROJECT ---------- */
.project { padding: 120px 0 40px; }
.pj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 846px); align-items: center; gap: 60px; margin: 80px 0 120px; }
.pj-text { padding-left: max(40px, calc((100vw - var(--inner)) / 2 + 40px)); max-width: calc(380px + max(40px, calc((100vw - var(--inner)) / 2 + 40px))); }
.pj-photo { width: 100%; height: 460px; object-fit: cover; }
.pj-reverse { grid-template-columns: minmax(0, 846px) minmax(0, 1fr); }
.pj-reverse .pj-text { order: 2; padding-left: 0; padding-right: 40px; max-width: 420px; }
.pj-reverse .pj-photo { order: 1; }
.pj-logo { width: 60px; height: 60px; margin-bottom: 16px; }
.pj h3 { font-family: var(--en); font-weight: 600; font-size: 40px; line-height: 1.2; margin-bottom: 20px; }
.pj h3 span { font-family: var(--ja); font-size: 11px; font-weight: 500; margin-left: 10px; vertical-align: middle; }
.pj p { font-size: 14px; line-height: 1.9; margin-bottom: 28px; }
.more {
  display: inline-flex; align-items: center; gap: 18px; font-weight: 700; font-size: 15px; text-decoration: none;
  border-bottom: 1px solid var(--ink); padding-bottom: 6px;
}
.more::after { content: ""; width: 14px; height: 10px; background: currentColor; clip-path: polygon(0 45%, 75% 45%, 75% 0, 100% 50%, 75% 100%, 75% 55%, 0 55%); }
.more:hover { color: var(--blue); }
@media (max-width: 900px) {
  .project { padding: 80px 0 20px; }
  .project .inner { padding: 0 20px; }
  .pj, .pj-reverse { grid-template-columns: 1fr; gap: 28px; margin: 56px 0 72px; }
  .pj-text, .pj-reverse .pj-text { order: 2; padding: 0 20px; max-width: none; }
  .pj-photo, .pj-reverse .pj-photo { order: 1; height: 62vw; }
  .pj h3 { font-size: 32px; }
}

/* ---------- PRICE ---------- */
.price { background: var(--gray); padding: 120px 0; }
.price .section-title { margin-bottom: 56px; }
.plan { background: var(--white); padding: 36px 40px; position: relative; }
.plan-no { font-family: var(--en); font-weight: 700; font-size: 14px; color: var(--blue); }
.plan-name { font-size: 22px; font-weight: 700; line-height: 1.5; }
.plan-price { font-weight: 700; font-size: 16px; margin: 6px 0 4px; }
.plan-price b { font-family: var(--en); font-weight: 700; font-size: 44px; margin: 0 4px; }
.plan-03 { background: var(--yellow); margin-bottom: 20px; padding: 48px 48px 40px; }
.plan-03 .plan-no { color: var(--ink); }
.plan-03 .plan-name { font-size: 28px; }
.plan-03 .plan-price b { font-size: 72px; line-height: 1.1; }
.plan-badge { position: absolute; top: -14px; left: 48px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 13px; padding: 4px 16px; }
.plan-items { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.plan-items li { background: var(--white); padding: 4px 14px; font-weight: 700; font-size: 14px; }
.plan-note { font-size: 13px; }
.plan-04 { margin-bottom: 20px; }
.plan-04 .plan-price b { font-size: 56px; line-height: 1.1; }
.plan-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan-small .plan-name { font-size: 18px; }
.price-foot { margin-top: 28px; font-size: 13px; }
@media (max-width: 900px) {
  .price { padding: 80px 0; }
  .price .inner { padding: 0 20px; }
  .plan, .plan-03 { padding: 32px 24px; }
  .plan-badge { left: 24px; }
  .plan-03 .plan-price b { font-size: 56px; }
  .plan-04 .plan-price b { font-size: 44px; }
  .plan-row { grid-template-columns: 1fr; }
}

/* ---------- MEDIA ---------- */
.media { padding: 120px 0; overflow: hidden; }
.media .section-title { margin-bottom: 48px; }
.media-list { display: flex; gap: 40px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 max(20px, calc((100vw - var(--inner)) / 2 + 40px)) 12px; }
.media-list li { flex: 0 0 420px; scroll-snap-align: start; }
.card { background: #111; color: var(--white); height: 100%; padding: 28px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 180px; border-top: 6px solid var(--yellow); }
.media-list li:nth-child(even) .card { border-top-color: var(--blue); }
.card-title { font-weight: 700; font-size: 15px; line-height: 1.6; }
.card-title a { color: var(--white); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-src { font-size: 12px; color: #bbbbbb; }
@media (max-width: 900px) { .media { padding: 80px 0; } .media-list { gap: 16px; } .media-list li { flex-basis: 80vw; } }

/* ---------- MESSAGE ---------- */
.message { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 827px); align-items: start; padding: 40px 0 160px; }
.message-text { position: relative; z-index: 1; padding-left: max(40px, calc((100vw - var(--inner)) / 2 + 40px)); margin-right: -320px; padding-top: 20px; }
.message h2 { font-size: 34px; font-weight: 700; line-height: 1.6; margin-bottom: 24px; }
.message p { font-size: 14px; font-weight: 500; line-height: 2; max-width: 640px; }
.message-photo { width: 100%; height: 460px; object-fit: cover; }
@media (max-width: 1100px) {
  .message { grid-template-columns: 1fr; padding: 0 0 80px; }
  .message-text { margin: 0; padding: 32px 20px 0; order: 2; }
  .message-photo { order: 1; height: 62vw; }
  .message h2 { font-size: 26px; }
}

/* ---------- フッター（CONTACT） ---------- */
.footer { background: var(--blue); color: var(--white); padding: 80px 0 40px; }
.footer-inner { max-width: var(--inner); margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-logo { display: inline-block; text-decoration: none; }
.footer-logo img { width: 330px; }
.footer-logo span { display: block; text-align: right; font-family: var(--en); font-weight: 600; font-size: 14px; line-height: 1.1; margin-top: 6px; }
.sns { margin-top: 36px; display: grid; gap: 14px; }
.sns a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--en); font-weight: 600; font-size: 20px; text-decoration: none; }
.sns img { width: 36px; height: 37px; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.contact-box { width: 360px; background: rgba(255,255,255,.12); padding: 28px 40px 30px; text-decoration: none; display: block; margin-bottom: 40px; }
.contact-box:hover { background: rgba(255,255,255,.2); }
.contact-title { display: flex; justify-content: space-between; align-items: center; font-family: var(--en); font-weight: 600; font-size: 34px; line-height: 1.2; margin-bottom: 12px; }
.contact-title::after { content: "→"; font-size: 18px; }
.contact-text { display: block; font-size: 13px; font-weight: 500; line-height: 1.7; }
.footer-small { font-size: 11px; }
.footer-small a { color: var(--white); }
@media (max-width: 900px) {
  .footer { padding: 60px 0 32px; }
  .footer-inner { padding: 0 20px; flex-direction: column; }
  .footer-logo img { width: 240px; }
  .footer-right { align-items: stretch; }
  .contact-box { width: auto; padding: 24px; margin-bottom: 20px; }
}

/* ---------- プライバシーポリシー（privacy.html） ---------- */
.doc { padding: 140px 0 100px; }
.doc .inner { max-width: 800px; }
.doc h1 { font-size: 28px; font-weight: 700; margin-bottom: 32px; }
.doc h2 { font-size: 17px; font-weight: 700; margin: 32px 0 6px; }
.doc ul { list-style: disc; padding-left: 1.4em; }
.doc p { font-size: 14px; }
