
/* 共通設定 */
body { background-color: #FFBE41; }
a { color: inherit; text-decoration: none; }

/* ヘッダー */
header {
  display: flex;
  justify-content: space-between;
  position: fixed;
  z-index: 9999;
  top: 0; /* 安定の0 */
}
header div {
  width: 266px;
  background-color: #FFBE41;
  display: flex;
  justify-content: center;
  border-bottom-right-radius: 50px;
  border-top-right-radius: 50px;
  position: relative;
  z-index: 999;
}

#top-logo a{
  display: inline-block;
text-align: center;
width: 80%;
}

header div img {  text-align: center;}

/* ナビゲーションバー */
nav {
  background-color: white;
  width: auto;
  right: 0;
  left: 270px;
  height: fit-content;
  border-radius: 50px;
  margin: 20px;
  display: flex;
  justify-content: space-evenly;
  position: fixed;
}
nav ul {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 2vw;
  padding: 0;
  width: 100%;
}
nav ul li {
  list-style-type: none;
  width: auto;
  text-align: center;
  font-family: wanpaku-ruika, sans-serif;
  font-style: normal;
  font-weight: 100;
  color: #892A00;
  font-size: clamp(14px, 3vw, 24px);
  line-height: 1;
}

nav ul li:hover {
color: #FFBE41;
}

nav#global-nav ul li a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

nav ul li span {
  font-family: setofont-sp, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
}
li#contact-button {
  background-color: #FFF9AB;
  border-radius: 50px;
  width: 30%;
  padding: 12px;
  margin-right: 16px;
}

#global-nav .nav-root > li {
  position: relative;
}

#global-nav .has-sub > a {
  cursor: pointer;
}

#global-nav .sub {
  position: absolute;
  left: -50px;
  top: calc(100% + 12px);
  min-width: 200px;
  background: #fffdf8;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#global-nav .has-sub:hover > .sub,
#global-nav .has-sub:focus-within > .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#global-nav .sub li {
  display: block;
  width: 100%;
  font-size: 16px;
}

#global-nav .sub li a {
  display: block;
  padding: 10px 16px;
  white-space: nowrap;
  transition: background .2s;
  display: block;
  width: 100%;
  white-space: nowrap;
}

#global-nav .sub li:first-child a:hover{
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

#global-nav .sub li:last-child a:hover{
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

#global-nav .sub li a:hover {
  background: #fff2b2;
}

/* メインビジュアル */
#main-frame { margin: 20px auto; padding: 20px; }
#main-visual { border-radius: 50px; margin-top: 70px; }

/* メイン領域の共通設定 */
#main { width: 60%; margin: 0 auto; }

/* トップの想い部分 */
section#intro {
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: -76px auto 0 auto;
  position: relative;
  z-index: 999;
  padding: 20px 0;
  border-radius: 50px;
  width: 80%;
}

.intro-title-gloup{
display: flex;
align-items: flex-end;
}


p.intro-title {
  font-family: wanpaku-ruika, sans-serif;
  font-style: normal;
  font-weight: 100;
  color: #892A00;
  font-size: clamp(24px, 3vw, 4vw);
  margin-bottom: 20px;
}

#nanca-only-logo{
  width: clamp(100px, 20vw, 80vw);
  height: auto;
  display: inline-block;
  vertical-align: bottom;
}

p.intro-text {
  padding: 20px;
  font-family: corporate-logo-ver2, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(14px, 3vw, 24px);
  margin: 0 0 20px 0;
  color: #892A00;
}

/* 各タイトル */
p.en-title {
  font-size: clamp(32px, 10vw, 150px);
  margin: 140px 0 0 0;
  font-family: asphalt, sans-serif;
  font-style: normal;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px #FFF9AB;
}
p.ja-title {
  font-size: clamp(20px, 5vw, 60px);
  margin-top: -80px;
  font-family: corporate-logo-ver2, sans-serif;
  font-style: normal;
  font-weight: 500;
  color: #892A00;
}

/* プラン共通設定 */
section#illust-plan, #design-plan, #another-plan {
  display: flex; flex-direction: column; align-items: stretch;
}
.contents-list {
  display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-evenly;
}
.contents { display: flex; flex-direction: column; align-items: center; }
h2 {
  font-size: clamp(24px, 6vw, 64px);
  margin: 40px auto;
  font-family: wanpaku-ruika, sans-serif;
  font-style: normal;
  font-weight: 100;
  color: #892A00;
}
.contents-list p {
  font-family: wanpaku-ruika, sans-serif;
  font-style: normal;
  font-weight: 100;
  color: rgb(137, 42, 0);
}
.contents-square {
  background-color: white;
  border-radius: 20px;
  width: 330px;
  height: 330px;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
}
.contents-square p 
{ font-size: clamp(18px, 4vw, 34px); }

p.use-case { font-size: clamp(12px, 2.5vw, 20px); }

/* 詳細を見るボタン */
.link-button {
  display: block;
  background-color: #FFF9AB;
  width: 400px;
  border-radius: 50px;
  border: none;
  margin: 120px auto;
  padding: 12px;
  font-size: clamp(12px, 2.5vw, 20px);
  font-family: wanpaku-ruika, sans-serif;
  font-style: normal;
  font-weight: 100;
  color: #892A00;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.link-button:hover {
  box-shadow: none;
}

/* 制作実績 */
section#works-list {
  margin-top: 100px;
  display: flex; flex-direction: column; flex-wrap: nowrap; ;
}
.gallery{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
}
.works-square {
  width: clamp(120px, 22vw, 260px); aspect-ratio: 1 / 1; margin-bottom: 20px; background-color: white; border-radius: 20px; overflow: hidden;
}

/* 制作流れ */
.circle {
  width: clamp(100px, 10vw, 140px); height: clamp(100px, 10vw, 140px); border-radius: 50%; background-color: white;
  box-shadow: 0 8px 4px rgba(0, 0, 0, 0.4);
  display: flex; justify-content: center; align-items: center; text-align: center;
  font-family: wanpaku-ruika, sans-serif; font-style: normal; font-weight: 100; color: #892A00;
}
.process-image {
  display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: space-evenly; margin-top: 140px;
}
.process-image img 
{ height: 28px; }
.group 
{ display: flex; flex-direction: column; align-items: center; }
.group .circle
{ margin-bottom: 20px; }
.correction {
  margin-top: 20px; background-color: white; padding: 12px 40px; border-radius: 50px;
  box-shadow: 0 8px 4px rgba(0, 0, 0, 0.4);
  font-family: wanpaku-ruika, sans-serif; font-style: normal; font-weight: 100; color: #892A00;
}
.arrow { height: 140px; display: flex; align-items: center; }
.annotation {
  margin-top: 20px; font-size: small; font-family: kozuka-gothic-pr6n, sans-serif; font-style: normal; font-weight: 200; color: #892A00;
}

/* お問い合わせ */
.contact-list { display: flex; justify-content: space-evenly; margin-top: 140px; }
.line-contact, .mail-contact {
  width: 300px; height: 300px; background-color: white; text-align: center; border-radius: 20px;
  font-family: wanpaku-ruika, sans-serif; font-style: normal; font-weight: 100; color: #892A00;
  display: flex; flex-direction: column; align-items: center;
}

.line-contact a{
  display: inline-block;
}

.mail-contact a{
  display: block;
  width: 46%;
  line-height: 0;
  margin: 30px 20px 20px 20px;
}



.line-contact img { margin: 10px; }
img#line-QR { width: 50%; }
img#mail-icon { width: 100%; height: auto; display: block; }

.business-hours {
  margin-top: 16px;
  font-size: clamp(12px, 1.6vw, 18px);
  color: #892A00;
  font-family: "wanpaku-ruika", sans-serif;
}

/* フッター */
footer {
  width: 90%; height: 500px; background-color: white; border-radius: 50px;
  margin: 140px auto 50px auto; display: flex; align-items: center;
}
.company-info p {
  font-family: wanpaku-ruika, sans-serif; font-style: normal; font-weight: 100; color: #892A00; margin-top: 20px;
}

.site-map p a:hover{
color: #FFBE41;
}

.site-map ul li a:hover{
  color: #FFBE41;
}

.company-info { display: flex; flex-direction: column; align-items: center; padding: 20px; margin-left: 100px; }
img#site-logo-footer { width: 300px; margin: 20px; }
.sns-icons { width: 300px; display: flex; justify-content: space-evenly; }
.sns-icons img { width: 40px; }
.site-map { display: flex; margin-left: 84px; margin-top: 40px;}
.site-map p {
  font-family: wanpaku-ruika, sans-serif; font-style: normal; font-weight: 100; color: #892A00;
}
.site-map div { margin-left: 90px; }
footer ul { padding-left: 0; }
footer li {
  list-style-type: none; margin: 4px 0; font-family: kozuka-gothic-pr6n, sans-serif;
  font-style: normal; font-weight: 400; color: #892A00; font-size: clamp(10px, 2.5vw, 14px);
}
.copyright {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}
.copyright small {
  font-size: 12px;
  color: #892A00;  /* 既存フッター文字色に合わせ */
}

/* 画像埋め込み（省略せず維持） */
#characterdesign, #cut-illust, #nigaoe, #comic, #main-visual-illust, #another-illust,
#poster-design, #web-design, #banner-design, #meisi-design, #logo-design, #sign-design,
#sns-operation, #acting, #movie-photo-editing {
  position: relative;
  background-repeat: no-repeat; background-position: center; background-size: cover; overflow: hidden;
}
#characterdesign { background-image: url(../image/characterdesign-image.png); }
#cut-illust { background-image: url(../image/cutillust-image2.png); }
#nigaoe { background-image: url(../image/nigaoe-image.png); }
#comic { background-image: url(../image/comic-image.png); }
#main-visual-illust { background-image: url(../image/mainvisual-image.png); }
#another-illust { background-image: url(../image/icon-illust.JPG); }
#poster-design { background-image: url(../image/leaflet-image.png); }
#web-design { background-image: url(../image/webdesign-image.png); }
#banner-design { background-image: url(../image/banner2.jpg); }
#meisi-design { background-image: url(../image/meishi-image.png); }
#logo-design { background-image: url(../image/logo-image.png); }
#sign-design { background-image: url(../image/sin-image-mokup.png); }
#sns-operation { background-image: url(../image/sns-mokup-1.png); }
#acting { background-image: url(../image/making-image.png); }
#movie-photo-editing { background-image: url(../image/editing-image.png); }

/* 画像埋め込み共通オーバーレイ */
#characterdesign::before, #cut-illust::before, #nigaoe::before, #comic::before, #main-visual-illust::before,
#another-illust::before, #poster-design::before, #web-design::before, #banner-design::before,
#meisi-design::before, #logo-design::before, #sign-design::before, #sns-operation::before,
#acting::before, #movie-photo-editing::before {
  content: ""; position: absolute; inset: 0;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 20px; z-index: 1;
}
#characterdesign p, #cut-illust p, #nigaoe p, #comic p, #main-visual-illust p, #another-illust p,
#poster-design p, #web-design p, #banner-design p, #meisi-design p, #logo-design p,
#sign-design p, #sns-operation p, #acting p, #movie-photo-editing p {
  position: relative; z-index: 2;
}

/* 各サービスページ共通 */
.page-title { display: flex; flex-direction: column; align-items: center; }
p.en-title.plan-title{
  font-size: 6.25em;
}
p.ja-title-ruika {
  font-size: clamp(20px, 5vw, 50px);
  font-family: wanpaku-ruika, sans-serif; font-style: normal; font-weight: 100; color: #892A00;
  margin-top: -80px;
}
p.attention-top {
  font-family: kozuka-gothic-pr6n, sans-serif; font-style: normal; font-weight: 600; color: #892A00; text-align: center; margin: 0;
}
.contents-description { display: flex; justify-content: center; margin-bottom: 50px; margin-top: 100px; }
section#plan-list { margin-top: 100px; }
.content-and-image{
  display: flex; flex-direction: column; align-items: center; flex-wrap: nowrap; margin-top: -5%;
}
h3 {
  font-size: clamp(16px, 3.5vw, 28px);
  font-family: wanpaku-ruika, sans-serif; font-style: normal; font-weight: 100; color: #892A00; text-align: center;
}
img.contents-image { width: 300px; height: 300px; border-radius: 50%;  aspect-ratio: 1/1; display: block;}
.details { margin-left: 140px; width: 32vw;}
.contents-description p { font-family: kozuka-gothic-pr6n, sans-serif; font-style: normal; font-weight: 600; color: #892A00; }
p.description { line-height: 2em; }
strong.price {
  font-size: clamp(20px, 5vw, 50px);
  font-family: wanpaku-ruika, sans-serif; font-style: normal; font-weight: 100; color: #892A00;
}

p.deadlines{
  font-family: wanpaku-ruika, sans-serif; font-style: normal; font-weight: 100; color: #892A00;
  font-size: clamp(18px, 2vw, 20px);
}

p.price-caption { font-size: clamp(10px, 2vw, 12px); }
section#important-notes {
  display: flex; flex-direction: column; align-items: center; background-color: white; border-radius: 50px; margin: 140px 0;
}
h1.important-notes-title {
  font-size: clamp(20px, 5vw, 50px);
  font-family: wanpaku-ruika, sans-serif; font-style: normal; font-weight: 100; color: #892A00;
}
p.attention-notes {
  font-family: kozuka-gothic-pr6n, sans-serif; font-style: normal; font-weight: 600; color: #892A00; margin: -33px 0 0 0;
}
section#important-notes ul { margin: 50px 254px; }
section#important-notes ul li::marker { color: #892A00; }
section#important-notes ul li p {
  font-size: clamp(14px, 3vw, 24px);
  font-family: wanpaku-ruika, sans-serif; font-style: normal; font-weight: 100; color: #892A00;
}
section#important-notes ul li span {
  font-family: kozuka-gothic-pr6n, sans-serif; font-style: normal; font-weight: 600; color: #892A00;
}

/* 利用規約ページ */
#policy-title{
  display: flex; flex-direction: column; align-items: center;
}

#policy-page .policy-body{
  width: min(100%, 960px);
  margin: 40px auto 0;
  font-family: kozuka-gothic-pr6n, sans-serif;
  color: #892A00;
  line-height: 1.9;
}

#policy-page .lead{
  margin-bottom: 28px;
  font-weight: 600;
}

#policy-page .policy-section{
  margin: 22px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#policy-page .policy-section h3{
  font-family: wanpaku-ruika, sans-serif;
  font-weight: 100;
  color: #892A00;
  font-size: clamp(18px, 2.4vw, 28px);
  margin: 16px 0 8px;
}

#policy-page .policy-section p,
#policy-page .policy-section li{
  font-weight: 600;
}

#policy-page .policy-section ol{
  margin: 8px 0 0 1.2em;
  padding: 0;
}

#policy-page .policy-section ul{
  margin: 8px 0 0 1.2em;
  padding: 0;
}
#policy-page .policy-section ul li{
  list-style: disc;
}

#policy-page .policy-section ul li ul li{
  list-style: circle;
}

a.google-link{
  color: #FFF9AB;
  text-decoration: underline;
}

/* 制作実績ページ */
.works-square.works-page-only{
  width: clamp(180px, 76vw, 350px);
}

.works-square:hover {
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
  z-index: 9998;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: white;
  border-radius: 20px;
  padding: 20px;
  max-width: 90%;
  width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, transform .4s ease, visibility .4s ease;
  z-index: 9999;
  overflow: hidden;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal img.modal-image,
.modal h3.modal-title{
  flex: 0 0 auto;
}

.modal-desc{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  text-align: left;
  line-height: 1.8;
  padding-right: 8px;
  color: #892A00;
}

body.is-modal-open{
  overflow: hidden;
}

.modal img.modal-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 16px;
}

.modal p.modal-caption {
  font-family: kozuka-gothic-pr6n, sans-serif;
  color: #892A00;
  font-weight: 600;
  font-size: clamp(14px, 3vw, 18px);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #892A00;
  cursor: pointer;
}

.modal h3.modal-title {
  font-family: wanpaku-ruika, sans-serif;
  font-weight: 100;
  color: #892A00;
  font-size: clamp(18px, 3vw, 28px);
  margin: 12px 0 8px;
}

.modal p.modal-desc {
  font-family: kozuka-gothic-pr6n, sans-serif;
  font-weight: 500;
  color: #892A00;
  font-size: clamp(14px, 2.5vw, 18px);
  line-height: 1.8;
}

/* 会社概要P */


#info-body {
  --accent: #892A00;           /* 必要に応じてブランド色に */
  --border: #e6e6e6;
  --heading: #333;
  --text: #333;
  --muted: #777;
  --bg: #fff;
  color: var(--text);
  background: var(--bg);
  border-radius: 20px;
}

/* 横幅コンテナ */
#company-information .company-wrap{
  margin: 0 auto;
  padding: 10% 8%;
}

/* 小見出し */
#company-information .sub-title{
  font-size: clamp(18px, 3.8vw, 22px);
  font-weight: 700;
  margin: clamp(20px, 4vw, 28px) 0 12px;
  position: relative;
  padding-left: 1em;
}
#company-information .sub-title::before{
  content:"";
  position:absolute;
  left:0; top:.55em;
  width:.6em; height:.15em;
  background: var(--accent);
  border-radius: 999px;
}

ul.office-list{
  padding-left: 0;
}

ul.office-list li{
  list-style-type: none;
}

/* ---- 定義リスト（会社プロフィール） ---- */
#company-information .company-profile{
  margin: 0;
  border-top: 1px solid var(--border);
}
#company-information .company-profile dt,
#company-information .company-profile dd{
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
#company-information .company-profile dt{
  font-weight: 700;
  color: var(--heading);
}

/* SPは縦積み、タブレット以上は2カラム風 */
@media (min-width: 720px){
  #company-information .company-profile{
    display: grid;
    grid-template-columns: 220px 1fr;
    column-gap: 24px;
  }
  #company-information .company-profile dt{
    padding-right: 12px;
  }
}

/* 注釈や補足 */
#company-information .note{
  color: var(--muted);
  font-size: .92em;
  margin: 4px 0 10px;
}

/* リスト共通 */
#company-information ul{
  list-style: disc;
}
#company-information .client-list li + li,
#company-information .office-list li + li{
  margin-top: .35em;
}

/* ---- details（折りたたみ／任意） ---- */
#company-information details{
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  margin: 12px 0;
  overflow: hidden;
}
#company-information summary{
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  position: relative;
  list-style: none; /* Safari対策 */
}
#company-information summary::-webkit-details-marker{ display:none; }
#company-information summary::after{
  content:"＋";
  position:absolute;
  right:16px; top:50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 900;
}
#company-information details[open] summary::after{
  content:"－";
}
#company-information .details-body{
  padding: 0 16px 16px;
}

/* 会社情報（資本金/代表/顧問/取引銀行）も同じDLスタイルで */
#company-information .company-etc{
  margin: 8px 0 0;
  border-top: 1px solid var(--border);
}
#company-information .company-etc dt,
#company-information .company-etc dd{
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
#company-information .company-etc dt{
  font-weight: 700;
  color: var(--heading);
}
@media (min-width: 720px){
  #company-information .company-etc{
    display: grid;
    grid-template-columns: 220px 1fr;
    column-gap: 24px;
  }
}

/* リンク */
#company-information a{
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 余白の微調整 */
#company-information .business-lists h3{
  font-size: clamp(16px, 3.2vw, 18px);
  margin: 16px 0 6px;
  text-align: left;
}
#company-information .business-lists ul{
  margin-bottom: 12px;
}

.org-chart{
  text-align: center;
}

/* トピックスP */
#topics-page {
  margin: 0 auto;
  padding: 80px 20px;
}

.topics-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.topic-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  background: #fffdf8;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.topic-thumb {
  width: 40%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.topic-content {
  padding: 20px;
  width: 60%;
}

.topic-date {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.topic-title {
  font-size: 1.3rem;
  color: #892A00;
  margin-bottom: 8px;
  line-height: 1.4;
}

.topic-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* メンバーP */
#member-page {
  /* ページ内の余白整え */
  padding-inline: clamp(16px, 4vw, 40px);
}

.member-list {
  border-radius: 16px;
  padding: clamp(16px, 3.5vw, 40px);
}

/* 1枚のカード */
.member-card {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  background: #fffdf8;
  border-radius: 18px;
  padding: clamp(16px, 3vw, 28px);
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
  margin-bottom: clamp(14px, 2.2vw, 20px);
  transition: transform .25s ease, box-shadow .25s ease;
}

.member-avatar {
  inline-size: clamp(120px, 22vw, 262px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: #fffbc1;
}
.member-avatar img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.member-content {
  color: #4b2a16;
  line-height: 1.7;
}
.member-name {
  font-size: clamp(18px, 2.2vw, 22px);
  margin: 0 0 4px;
  letter-spacing: .03em;
  color: #892A00;
  text-align: left;
}
.member-role {
  margin: 0 0 8px;
  font-weight: 600;
  color: #7a3a16;
}
.member-bio {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 16px);
}

.personal-sns-link a {
  display: inline-flex; 
  width: auto;
  align-items: center;
}
.personal-sns-link img {
  width: 24px;
  height: auto;
  display: block;
}
.personal-sns-link {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
}

/* Q&Aページ */
/* セクション見出し */
#faq-list .faq-heading {
  margin: 56px auto 10px;
  max-width: min(960px, 92vw);
  font-size: clamp(18px, 2.4vw, 22px);
  font-family: wanpaku-ruika, sans-serif;
  font-weight: 100;
  color: #892A00;
  margin-bottom: 1.8vw;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: clamp(18px, 2.4vw, 22px);
  background: #FFBE41;
  padding: 8px 0;
}

/* 左右の線 */
#faq-list .faq-heading::before,
#faq-list .faq-heading::after {
  content: "";
  flex: 1;
  height: 3px;
  background-color: #892A00;
  border-radius: 3px;
}

/* グループのラッパー */
#faq-list .faq-group {
  max-width: min(960px, 92vw);
  margin: 0 auto 14px;
  display: grid;
  gap: 14px;
}

#faq-list details {
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: clip;
}
#faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 18px;
  font-weight: 700;
  position: relative;
  line-height: 1.6;
}
#faq-list summary::-webkit-details-marker { display: none; }
#faq-list summary::after {
  content: "+";
  position: absolute; right: 16px; top: 50%; translate: 0 -50%;
  font-size: 20px; font-weight: 700;
}
#faq-list details[open] summary::after { content: "−"; }
#faq-list .answer { padding: 0 18px 18px 18px; color: #333; }

/* 開閉アニメーション（任意） */
#faq-list details .answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
#faq-list details[open] .answer { grid-template-rows: 1fr; }
#faq-list details .answer > * { overflow: hidden; }

/* 制作の流れページ */
#process-flow {
  max-width: min(960px, 92vw);
  margin: 0 auto 80px;
  font-family: 'corporate-logo-ver2', sans-serif;
}

.process-wrapper {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 20px;
}

.process-step {
  background: #fffdf8;
  border: 2px solid #FFBE41;
  border-radius: 20px;
  padding: 32px 24px;
  position: relative;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  text-align: center;
}

.process-step .step-number {
  position: absolute;
  top: -18px;
  left: 24px;
  background: #FFF9AB;
  color: #892A00;
  font-weight: 700;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'corporate-logo-ver2', sans-serif;
  font-size: 16px;
}

.process-step h3 {
  color: #892A00;
  font-family: wanpaku-ruika, sans-serif;
  font-size: clamp(20px, 2.6vw, 28px);
  margin-bottom: 8px;
}

.process-step p {
  line-height: 1.7;
  font-size: clamp(14px, 2vw, 16px);
  color: #333;
  text-align: center;
}

.process-image-illust{
  width: 25%;
}


/* —— ハンバーガーの見た目（共通）—— */
.btn-trigger {
  position: relative;
  width: 36px; height: 32px;
  cursor: pointer; border: 0; background: transparent;
  z-index: 10001;
}
.btn-trigger span {
  position: absolute; left: 0; width: 100%; height: 4px;
  background-color: #892A00; border-radius: 4px;
}
.btn-trigger, .btn-trigger span { display: inline-block; transition: all .5s; box-sizing: border-box; }
.btn-trigger span:nth-of-type(1){ top: 0; }
.btn-trigger span:nth-of-type(2){ top: 14px; }
.btn-trigger span:nth-of-type(3){ bottom: 0; }
#btn02.active span:nth-of-type(1){ transform: translateY(14px) rotate(45deg); }
#btn02.active span:nth-of-type(2){ opacity: 0; }
#btn02.active span:nth-of-type(3){ transform: translateY(-14px) rotate(-45deg); }

/* ===== スマホ（〜500px） ===== */
@media (max-width: 500px){
  body { font-size: 14px; }
  .btn-trigger{ position: fixed; top: 14px; right: 16px; display: block; }
  header div{ width: 34vw; top: 12px;}
  nav{
    border-radius: 0;
    margin: 0;
  }
  #global-nav .sub {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin-top: 6px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    top: 100%;
    width: 70%;
    margin: 16px auto 0 auto;
  }

  #global-nav .has-sub.open > .sub {
    display: block;
  }

  #global-nav .sub li{
    text-align: center;
    padding: 4px 0;
  }

  nav#global-nav ul li a{
    height: auto;
  }
  #main-frame { margin: 0; padding: 0; }
  #main-visual { margin-top: 54px; border-radius: 12px; }
  .intro-title-gloup {
    flex-wrap: wrap;
    justify-content: center;
  }
  h1, .section-name { font-size: 32px; }
  p.en-title { font-size: 54px; margin: 0;}
  p.ja-title { font-size: 20px; margin-top: -32px; }
  h2 { font-size: 28px; }
  section#intro { margin-top: -12px; width: 94%; padding: 20px 0; border-radius: 12px; }
  #nanca-only-logo { width: 50vw; }
  p.intro-title span { top: -3em; }
  p.intro-title { font-size: 24px; }
  p.intro-text { font-size: 14px; line-height: 1.6; }
  .contents-square p { font-size: 18px; }
  #main { width: 90%; }
  .link-button {
    font-size: 14px;
    width: 80%;
    margin: 46px auto;
  }
  .contents-list { flex-direction: column; flex-wrap: nowrap; }
  .contents-square { width: 75%; height: auto; aspect-ratio: 1 / 1; }

section#works-list{
  margin-top: 36px;
}

  .gallery{
    justify-content: space-evenly;
    gap: 0;
  }

  .process-image { flex-direction: column; align-items: center; gap: 8px; margin-top: 54px;}
  .arrow { height: auto; }
  .arrow img { transform: rotate(90deg); width: 24px; height: auto; }
  .group { flex-direction: column; align-items: center; }
  .correction { margin-top: 8px; }
  .annotation { text-align: center; font-size: 12px; }
  .contact-list { gap: 2vw; margin-top: 50px; }
  .line-contact, .mail-contact { height: auto; font-size: .8em; }
  footer { flex-direction: column; height: auto; font-size: 0.8em; margin: 100px auto 16px auto; border-radius: 20px;}
  .company-info { margin-left: 0; width: 50vw; }
  .sns-icons { width: 50vw; }
  .site-map { margin-left: 0; margin: 3%;}
  .site-map div { margin-left: 0; }
  .copyright small{
    font-size: 9px;
  }

  /* イラストプランページ・デザインプランページ・その他のサービス共通*/
  p.en-title.plan-title{
    font-size: 3.25em;
    text-align: center;
    line-height: 1em;
  }

  .page-title{
    margin-top: 28%;
  }

  p.ja-title-ruika{
    margin-top: -26px;
    font-size: 1.8em;
  }
  p.attention-top{
    font-size: 0.6em;
  }

  section#plan-list {
    margin-top: 24px;
  }

.contents-description{
  flex-direction: column;
  align-items: center;
  margin-top: 36px;
}
img.contents-image{
  width: 50vw;
  height: 50vw;
}
.contents-description p{
  font-size: 10px;
}
.details{
  margin: 0;
  width: 100%;
  text-align: center;
}

p.price-caption{
  font-size: 0.4em;
}
p.attention-notes{
  margin-top: -9px;
  font-size: 0.5rem;
}

section#important-notes{
  border-radius: 20px;
}

section#important-notes ul{
  padding: 0 12px 0 24px;
  margin: 25px 0;
}
section#important-notes ul li span{
  font-size: 0.6rem;
}
/* 利用規約ページ */
#policy-page .policy-body{
    width: 92%;
    line-height: 1.85;
  }
  p.en-title.plan-title.policy-page-only{ font-size: 2.6em;}

  #policy-page .ja-title{ margin-top: -36px; }

  /* 会社概要 */
#company-information .company-profile dd, #company-information .company-etc dd {
  margin-left: 0;
}

#company-information summary{
  padding: 14px 42px 14px 14px;
}
#company-information ul{
  padding-left: 12px;
}

/* トピックスP */
.topic-card {
    flex-direction: column;
  }

  .topic-thumb {
    width: 100%;
  }

  .topic-content {
    width: 100%;
  }

  #topics-page {
    padding: 0px 16px;
  }

h2.topic-title{
  margin-top: 8px;
}
/* メンバーP */
.member-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .member-content { max-width: 36em; }

  .member-name {
    text-align: center;
  }

  .personal-sns-link {
    justify-content: center;
  }

  /* Q&A */
  #faq-list summary { padding: 14px 48px 14px 14px; }
  #faq-list .answer { padding: 0 14px 14px 14px; }

    #faq-list .faq-heading {
    font-size: 18px;
    gap: 8px;
}

/* 制作実績ページ */
.modal-desc {
    max-height: 40vh;
    font-size: 13px;
  }

  /* ご依頼の流れP */
  .process-image-illust{
    width: 50%;
  }

}
/* ===== タブレット（501〜1024px） ===== */
@media (min-width: 501px) and (max-width:1024px){
  body { font-size: 16px; }
  nav{
    border-radius: 0;
    margin: 0;
  }

    #global-nav .sub {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin-top: 6px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    top: 100%;
    width: 70%;
    margin: 16px auto 0 auto;
  }

  #global-nav .has-sub.open > .sub {
    display: block;
  }

  #global-nav .sub li{
    text-align: center;
    padding: 4px 0;
  }

  nav#global-nav ul li a{
    height: auto;
  }

        p.intro-title span{
        top: -5em;
      }


  h1, .section-name, p.en-title { font-size: 64px; }
  .info-title p.en-title{
    font-size: 112px;
    margin: 0;
  }
  p.ja-title { font-size: 28px; margin-top: -36px; }
  h2 { font-size: 40px; }
  p.intro-title { font-size: 32px; }
  p.intro-text { font-size: 16px; line-height: 1.8; }
  header { top: 0; }
  header>div { width: 220px; padding: 0 12px 16px 12px; }
  header>div img { width: 82%; }
  .btn-trigger{ position: fixed; top: 24px; right: 36px; display: block; z-index: 10001; }
  #main { width: 90%; margin: 0 auto; }
  .contents-square { height: auto; aspect-ratio: 1 / 1; }
  .contents-square p { font-size: 20px; }
  button.link-button { font-size: 16px; width: 70%; }
  section#works-list { gap: 10px 10px; }
  .process-image {flex-wrap: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 80px; }
  .process-image > *{
  flex: 0 0 auto;                 /* 勝手に縮ませない */
}
.circle{
  width: clamp(72px, 9vw, 100px);
  height: clamp(72px, 9vw, 100px);
  border-radius: 50%;
  box-shadow: 0 4px 3px rgba(0,0,0,.25); /* 影も控えめに */
}
.circle p{
  font-size: clamp(10px, 1.6vw, 14px);
  line-height: 1.25;
}
  .arrow { height: auto; }
  .process-image img { height: clamp(12px, 1.8vw, 18px); }
  .group{
  width: clamp(90px, 12vw, 120px);
  align-items: center;
}
.group .circle{ margin-bottom: 8px; }

.correction{
  margin-top: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: clamp(10px, 1.6vw, 12px);
  box-shadow: 0 4px 3px rgba(0,0,0,.25);
}

.annotation{
  font-size: clamp(10px, 1.4vw, 12px);
  text-align: center;
}
  footer { width: 94%; border-radius: 40px; margin: 100px auto 40px auto; height: auto; padding: 20px 0; }
  .company-info { margin-left: 40px; }
  .site-map { margin-left: 0; gap: 40px; }
  .site-map div { margin-left: 0; }
  footer li {font-size: 12px;}
  #main-visual{
    margin-top: 50px;
  }

  section#important-notes ul{
    margin: 25px 108px;
  }
}

/* ===== 背景オーバーレイ（共通） ===== */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
  z-index: 9998;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

/* ===== モバイル＆タブレットのナビ表示（上からフェード） ===== */
@media (max-width:1024px){
  /* display は使わず visibility/opacity/transform で切替 */
  nav#global-nav{
    position: fixed; top: 0; left: 0;
    width: 100%;
    padding-top: 72px;  /* ボタン分の余白 */
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-40px);
    pointer-events: none;

    box-shadow: 0 12px 24px rgba(0,0,0,0.15);

    transition:
      opacity .45s cubic-bezier(.25,.8,.25,1),
      transform .45s cubic-bezier(.25,.8,.25,1),
      visibility .45s step-end;
  }
  nav#global-nav.is-open{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition:
      opacity .45s cubic-bezier(.25,.8,.25,1),
      transform .45s cubic-bezier(.25,.8,.25,1),
      visibility 0s step-start;
  }

  /* 縦並び（保険） */
  nav#global-nav ul{ display:flex; flex-direction:column; align-items:stretch; gap:0; padding:6px 0 12px; }
  nav#global-nav ul li{ width:100%; padding:16px 20px; border-bottom:1px solid rgba(137,42,0,.15); }
  li#contact-button{ width:100%; margin:0; border-radius:0; background:#FFF9AB; padding:16px 20px; }
}


@media (min-width: 1025px) and (max-width:1366px){
#main{
  width: 80%;
}

  .site-map {
    margin-left: 60px;
  }
.site-map div {
  margin-left: 36px;
}

#global-nav .nav-root > li {
font-size: 18px;
}
}


/* ===== PC（1025px〜） ===== */
@media (min-width:1025px){
  .btn-trigger{ display: none; }
  nav#global-nav{
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    position: fixed;
    display: flex; /* 横並び */
  }

.business-hours{
  margin-top: 60px;
}
}

/* ▼PC（1024px以上）→3カラム */
@media (min-width: 1024px) {
.site-map {
    display: flex;
    justify-content: space-between;
    gap: 32px;
  }
  .site-map-column { flex: 1; }
}

/* ▼スマホ・タブレット（1024px未満）→2カラム */
@media (max-width: 1023px) {
  .site-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "col1 col3"
      "col2 col3";
    gap: 6px;
  }
  .column1 { grid-area: col1; }
  .column2 { grid-area: col2; } /* 左の下段に積む＝“ホーム〜その他サービス”が左にまとまる */
  .column3 { grid-area: col3; } /* 右カラムで縦にのびる（2行分） */
}

@media (min-width: 768px) {
  .process-wrapper {
    gap: 60px;
  }
}