/* 色・余白・写真はこのファイルで調整できます。 */
:root {
  --navy: #073766;
  --navy-dark: #082c53;
  --blue: #1688ba;
  --text: #243c51;
  --pale: #f0f7fc;
  --line: #cadbe8;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  /* 正式画像を assets/images に保存後、none を url("../images/kobe.jpg") に変更。 */
  --hero-image: none;
  --services-card-image: none;
  --fees-card-image: none;
  /* 電話番号を一時的に非表示にする場合は table-row を none に変更。 */
  --office-phone-display: table-row;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: #fff; font-family: var(--sans); font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { color: var(--navy); line-height: 1.55; }
h1,h2,.brand { font-family: var(--serif); font-weight: 700; }
h2 { font-size: clamp(1.5rem,2.3vw,2rem); }
h3 { font-size: 1.2rem; }
p + p { margin-top: .85em; }
a { color: var(--navy); text-underline-offset: .3em; }
a:hover { text-decoration-thickness: 2px; }
button,input,textarea { font: inherit; }
button,a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img,svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #137eac; outline-offset: 5px; }
.container { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.section { padding-block: 58px; }
.pale { background: var(--pale); }
.skip-link { position: absolute; top: -100px; left: 12px; padding: 12px 20px; background: white; z-index: 100; }
.skip-link:focus { top: 10px; }
.site-header { background: #fff; border-bottom: 1px solid #edf3f7; }
.header-inner { width: min(1360px,calc(100% - 64px)); margin: auto; min-height: 88px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; }
.brand { font-size: clamp(1.2rem,2vw,1.65rem); letter-spacing: .07em; text-decoration: none; word-break: keep-all; overflow-wrap: anywhere; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.main-nav a { position: relative; padding: 22px 0; text-decoration: none; font-size: .9375rem; font-weight: 700; white-space: nowrap; }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: 12px; left: 0; right: 0; height: 2px; background: var(--navy); }
.menu-toggle { display: none; }
/* 現在は承認済みの仮背景。参考PNGを素材として使用していません。 */
.home-hero,.page-hero { background-color: #e7f3fc; background-image: linear-gradient(100deg,rgba(255,255,255,.97) 3%,rgba(255,255,255,.76) 45%,rgba(219,238,251,.3) 100%),var(--hero-image),linear-gradient(145deg,#eff9ff 20%,#beddec 100%); background-size: cover; background-position: center; }
.home-hero { padding: 62px 0 66px; }
.hero-copy { max-width: 780px; }
.hero-copy h1 { font-size: clamp(1.9rem,3.5vw,2.95rem); letter-spacing: .06em; margin-bottom: 24px; line-height: 1.65; }
.hero-copy p { max-width: 670px; color: var(--navy); }
.hero-copy p + p { font-weight: 700; }
.hero-copy .button { margin-top: 22px; }
.page-hero { padding-block: 65px; min-height: 250px; display: flex; align-items: center; }
/* 下層4ページ共通。ホームと同じ実写を、タイトル帯の高さに合わせて表示。 */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #fff;
  background-image: linear-gradient(90deg, #fff 0%, #fff 28%, rgba(255,255,255,.97) 35%, rgba(255,255,255,.7) 45%, transparent 65%), linear-gradient(180deg, #7aa1ce, #8aaccd);
}
.page-hero::before {
  content: "";
  position: absolute;
  right: 0;
  top: -18%;
  height: 125%;
  aspect-ratio: 3 / 2;
  background: url("../images/home-hero-real.jpg") center / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  pointer-events: none;
  z-index: -1;
}
/* PCのみ高さを16％拡大。実写の大きさ・横位置は従来の250px時を維持。 */
@media (min-width: 1024px) {
  .page-hero { min-height: 290px; }
  .page-hero::before { height: 312.5px; top: calc(50% - 170px); }
}
@media (max-width: 560px) {
  .page-hero::before { display: none; }
  .page-hero {
    background-image: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.94) 30%, rgba(255,255,255,.65) 60%, rgba(255,255,255,.12)), url("../images/home-hero-real.jpg");
    background-size: cover, cover;
    background-position: center, center 35%;
  }
}
.page-hero h1 { font-size: clamp(2.2rem,4vw,3.3rem); letter-spacing: .12em; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 28px; min-height: 52px; padding: 12px 30px; background: var(--navy); border: 1px solid var(--navy); border-radius: 4px; color: #fff; font-weight: 700; text-decoration: none; line-height: 1.6; transition: background .15s; text-align: center; }
.button:hover { background: #15537e; }
.button span { flex-shrink: 0; }
.section-title { text-align: center; margin-bottom: 30px; }
.section-title h2 { display: inline-block; position: relative; padding-bottom: 17px; }
.section-title h2::after { content: ""; position: absolute; height: 2px; width: 48px; bottom: 0; left: 50%; transform: translateX(-50%); background: var(--navy); }
.feature-row { display: grid; grid-template-columns: 36% 1fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 0; padding-bottom: 0; }
.feature-heading { display: flex; align-items: flex-start; gap: 24px; padding-right: 22px; border-right: 1px solid var(--line); }
.feature-heading h3 { padding-top: 4px; }
.feature-number { display: block; font-family: var(--serif); color: var(--blue); font-size: 2rem; font-weight: 400; line-height: 1.3; margin-bottom: 8px; }
.icon-circle { width: 98px; height: 98px; flex-shrink: 0; display: grid; place-items: center; background: #eaf5fc; border-radius: 50%; color: var(--navy); }
.icon-circle svg { width: 49px; height: 49px; }
.prose p { line-height: 1.95; }
.prose p + p { margin-top: .75em; }
.home-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.link-card { padding: 32px; background-color: #eef7fc; background-image: linear-gradient(100deg,#eff8fcf2,#eff8fcc7),var(--services-card-image); background-size: cover; background-position: center; border-radius: 4px; display: flex; flex-direction: column; align-items: flex-start; }
.fees-card { background-color: #f5f6f7; background-image: linear-gradient(100deg,#f5f6f7f2,#f5f6f7c7),var(--fees-card-image); }
.link-card h2 { display: inline-block; border-bottom: 2px solid var(--navy); padding-bottom: 7px; margin-bottom: 16px; }
.link-card p { margin-bottom: 22px; }
.link-card .button { margin-top: auto; background: transparent; color: var(--navy); border: 0; padding: 0; min-height: 44px; text-align: left; border-radius: 0; text-decoration: underline; text-underline-offset: 7px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 34px; }
.steps li { position: relative; }
.steps li:not(:last-child)::after { content: "›"; position: absolute; right: -23px; top: 40px; font-size: 2rem; color: var(--navy); }
.step-icon { margin: 0 auto 15px; border-radius: 50%; background: #ecf6fc; width: 100px; height: 100px; display: flex; align-items: center; flex-direction: column; justify-content: center; color: var(--navy); font-weight: 700; font-size: .9375rem; }
.step-icon svg { height: 38px; width: 38px; }
.steps h3 { text-align: center; margin-bottom: 12px; font-size: 1.05rem; }
.steps p { font-size: .9375rem; }
.cta { padding: 44px 24px; text-align: center; }
.cta h2 { margin-bottom: 16px; }
.cta .button { margin-top: 22px; min-width: 280px; }
.cta-light { background: linear-gradient(120deg,#f2f7fa,#e9f3fb); }
.cta-dark { color: white; background: linear-gradient(45deg,#10527c 0%,#10527c 13%,transparent 13%),linear-gradient(225deg,#10527c 0%,#10527c 13%,#083962 13%); }
.cta-dark h2 { color: #fff; }
.cta-dark .button { background: #fff; color: var(--navy); border-color: white; }
.cta-dark .button:hover { background: #e5f3fc; }
.service-band { padding: 36px 0; }
.service-band:nth-of-type(even) { background: #f0f8fd; }
.service-row { display: grid; grid-template-columns: 29% 1fr 145px; gap: 28px; align-items: center; }
.service-number { font-family: var(--serif); font-size: 2rem; color: var(--navy); line-height: 1.3; }
.service-heading-inner { display: flex; align-items: center; gap: 20px; }
.service-heading .icon-circle { width: 82px; height: 82px; }
.service-heading h2 { font-size: 1.45rem; border-left: 1px solid #9dbed5; padding-left: 20px; }
/* 取扱業務の写真枠。画像は後から各クラスの background-image に指定できます。 */
.service-image { aspect-ratio: 1; border-radius: 3px; background: linear-gradient(135deg,#e0edf4,#f8fbfd 60%,#d6e6ef); background-size: cover; background-position: center; }
.service-image-1 { background-image: url("../images/service-01.png"); }
.service-image-2 { background-image: url("../images/service-02.png"); }
.service-image-3 { background-image: url("../images/service-03.png"); }
.service-image-4 { background-image: url("../images/service-04.png"); }
.service-image-5 { background-image: url("../images/service-05-v2.png"); }
.service-image-6 { background-image: url("../images/service-06.png"); }
/* 既存の145px枠と本文幅・行高を維持し、画像だけ中央から約10％拡大。 */
@media (min-width: 1101px) {
  .service-image { width: 160px; height: 160px; max-width: none; margin: -7.5px; }
}
.numbered { display: flex; align-items: center; gap: 28px; margin-bottom: 28px; }
.numbered span { font-size: 2.7rem; font-weight: 400; line-height: 1.1; border-right: 1px solid #91acc3; padding-right: 28px; }
table { border-collapse: collapse; width: 100%; }
th,td { border: 1px solid #c6d6e3; padding: 13px 22px; }
.price-table { background: white; font-variant-numeric: tabular-nums; }
.price-table thead th { background: #dcebf8; color: var(--navy); font-weight: 700; }
.price-table th,.price-table td { text-align: center; }
.price-table tbody th { font-weight: 400; }
.table-note { margin-top: 16px; }
.fee-notes { background: #f5f8fa; margin-top: 26px; padding: 26px 32px; }
.fee-notes p { font-size: .9375rem; }
.other-fees { margin-left: 108px; }
.bar-title { border-left: 5px solid var(--navy); padding-left: 18px; line-height: 1.3; margin-bottom: 28px; }
.greeting { display: grid; grid-template-columns: 30% 1fr; gap: 42px; align-items: start; }
/* 十分な幅のPCのみ、写真サイズを保ち、最初の一文に必要な22pxを本文へ。 */
@media (min-width: 1260px) {
  .greeting { gap: 20px; }
}
/* 比較用：既存の写真枠を維持し、無加工の原本全体を表示します。 */
.portrait { position: relative; overflow: hidden; aspect-ratio: 1.08; border-radius: 5px; background: #fff; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.office-table { background: white; }
.office-table th { background: #e1effa; width: 180px; text-align: left; color: var(--navy); }
.office-table + p { margin-top: 18px; font-size: .9375rem; }
#office-phone { display: var(--office-phone-display); }
.access-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: stretch; }
.access-grid iframe { width: 100%; height: 100%; min-height: 330px; border: 0; border-radius: 4px; background: var(--pale); }
.access-copy { padding: 25px; border-radius: 4px; background: var(--pale); display: flex; flex-direction: column; justify-content: center; }
.access-copy p:not(:last-child) { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--navy); }
.access-train { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #e1effa; color: var(--navy); }
.access-train svg { width: 25px; height: 25px; }
.access-copy p:last-child { font-size: .9375rem; }
.contact-section { max-width: 1080px; padding-block: 60px 100px; }
.contact-panel { padding: 46px; background: #f3f8fc; border: 1px solid #e2edf5; border-radius: 5px; }
.form-row { display: grid; grid-template-columns: 240px 1fr; gap: 26px; margin-bottom: 24px; }
.form-row label { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 12px; font-weight: 700; color: var(--navy); }
.badge { display: inline-block; flex-shrink: 0; font-size: .8125rem; border-radius: 3px; padding: 0 9px; margin-top: 3px; color: white; line-height: 1.9; }
.required { background: #b8343e; }
.optional { background: #637585; }
.field { min-width: 0; }
input,textarea { width: 100%; border: 1px solid #a8c1d4; border-radius: 4px; background: #fff; padding: 12px 15px; color: #243c51; }
textarea { resize: vertical; min-height: 180px; }
input::placeholder { color: #737f8b; }
[aria-invalid="true"] { border-color: #b8343e; }
.field-error { display: block; color: #a4222d; font-size: .875rem; }
.field-error:empty { display: none; }
.submit-row { text-align: center; padding: 6px 0 12px; }
.submit-row .button { min-width: 300px; border-radius: 30px; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-notes { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9375rem; }
.form-status { margin-bottom: 30px; padding: 22px; border: 1px solid; border-radius: 4px; }
.form-status h2 { font-size: 1.25rem; }
.form-status.error { border-color: #c98c90; background: #fff6f6; }
.form-status.success { border-color: #8cbdb3; background: #f3fffb; }
.form-status ul { padding-left: 22px; margin-bottom: 0; }
.site-footer { border-top: 1px solid #e5eef5; padding: 32px 0 18px; font-size: .8125rem; color: #456078; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr; gap: 34px; }
.footer-grid .brand { font-size: 1.25rem; }
.footer-address { margin-top: 10px; max-width: 440px; }
.footer-nav { display: flex; flex-wrap: wrap; align-content: start; gap: 7px 20px; }
.footer-nav a { text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.footer-bottom small { font-size: .75rem; }
.back-top { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #ddecf7; text-decoration: none; font-size: 1.2rem; }
@media (max-width: 1100px) {
 .header-inner { width: calc(100% - 40px); gap: 20px; flex-wrap: wrap; padding-block: 18px; }
 .main-nav { gap: 22px; }
 .main-nav a { padding-block: 12px; }
 .main-nav a[aria-current="page"]::after { bottom: 4px; }
 .feature-heading { gap: 16px; }
 .feature-heading .icon-circle { width: 70px; height: 70px; }
 .service-row { grid-template-columns: 30% 1fr; }
 .service-image { display: none; }
 .service-heading-inner { gap: 12px; }
 .service-heading h2 { padding-left: 12px; }
 .form-row { grid-template-columns: 210px 1fr; }
}
@media (max-width: 800px) {
 .container { width: calc(100% - 40px); }
 .header-inner { gap: 16px; }
 .brand { font-size: 1.25rem; letter-spacing: .02em; }
 .main-nav { width: 100%; justify-content: space-between; gap: 12px; }
 .main-nav a { font-size: .875rem; }
 .section { padding-block: 40px; }
 .home-hero { padding-block: 42px; }
 .page-hero { min-height: 200px; padding-block: 45px; }
 .feature-row { grid-template-columns: 1fr; gap: 20px; }
 .feature-heading { border-right: 0; padding-right: 0; align-items: center; }
 .feature-heading h3 { padding-top: 0; }
 .feature-number { display: inline-block; margin: 0 16px 0 0; }
 .home-links { gap: 18px; }
 .link-card { padding: 24px; }
 .steps { grid-template-columns: 1fr 1fr; gap: 30px; }
 .steps li:nth-child(2)::after { content: none; }
 .service-heading-inner { flex-direction: column; align-items: flex-start; gap: 15px; }
 .service-heading h2 { border-left: 0; padding: 0; }
 .greeting { grid-template-columns: 33% 1fr; gap: 26px; }
 .access-grid { grid-template-columns: 1fr; }
 .access-grid iframe { min-height: 340px; }
 .contact-panel { padding: 28px; }
 .form-row { grid-template-columns: 1fr; gap: 9px; margin-bottom: 20px; }
 .form-row label { justify-content: flex-start; padding-top: 0; align-items: center; }
 .badge { margin-top: 0; }
 .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
 .footer-nav { grid-column: 1/-1; }
}
@media (max-width: 560px) {
 .container { width: calc(100% - 36px); }
 .header-inner { width: calc(100% - 32px); padding-block: 14px; min-height: 72px; gap: 12px; }
 .brand { font-size: 1.03rem; }
 .menu-toggle { display: none; background: white; color: var(--navy); border: 1px solid var(--line); border-radius: 4px; font-size: .8125rem; padding: 7px 9px; min-height: 42px; }
 .js .menu-toggle { display: inline-flex; }
 .main-nav { flex-wrap: wrap; gap: 6px 16px; padding-top: 7px; }
 .js .main-nav { display: none; }
 .js .main-nav.is-open { display: flex; }
 .main-nav a { min-height: 44px; }
 .home-hero { padding-block: 38px; }
 .hero-copy h1 { font-size: 1.8rem; letter-spacing: .025em; margin-bottom: 21px; }
 .hero-copy .button { width: 100%; font-size: .9375rem; gap: 15px; padding-inline: 16px; }
 .page-hero { min-height: 170px; padding-block: 37px; }
 .page-hero h1 { font-size: 2rem; }
 .section { padding-block: 36px; }
 .section-title { margin-bottom: 14px; }
 .feature-row { padding-block: 25px; }
 .feature-heading { gap: 16px; }
 .feature-heading h3 { font-size: 1.08rem; }
 .feature-heading .icon-circle { width: 62px; height: 62px; }
 .feature-heading .icon-circle svg { width: 34px; height: 34px; }
 .feature-number { display: block; margin-bottom: 4px; font-size: 1.65rem; }
 .home-links { grid-template-columns: 1fr; }
 .link-card { padding: 26px; }
 .steps { grid-template-columns: 1fr; gap: 24px; }
 .steps li { display: grid; grid-template-columns: 80px 1fr; column-gap: 16px; }
 .steps li::after { display: none; }
 .step-icon { grid-row: 1/3; width: 76px; height: 76px; margin: 0; font-size: .8rem; }
 .step-icon svg { width: 31px; height: 31px; }
 .steps h3 { text-align: left; margin: 0 0 8px; }
 .cta { padding: 36px 18px; }
 .cta .container { width: 100%; }
 .cta .button { min-width: 0; width: 100%; max-width: 360px; }
 .service-band { padding-block: 28px; }
 .service-row { grid-template-columns: 1fr; gap: 20px; }
 .service-image { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; }
 .service-heading { display: flex; align-items: center; gap: 20px; }
 .service-heading-inner { flex-direction: row; align-items: center; }
 .service-heading .icon-circle { width: 56px; height: 56px; }
 .service-heading .icon-circle svg { width: 32px; height: 32px; }
 .service-heading h2 { font-size: 1.25rem; }
 .numbered { gap: 15px; font-size: 1.3rem; margin-bottom: 22px; }
 .numbered span { font-size: 2.2rem; padding-right: 15px; }
 th,td { padding: 12px 6px; }
 .price-table { font-size: .875rem; line-height: 1.8; }
 .price-table thead th { white-space: normal; }
 .table-note { font-size: .9375rem; }
 .fee-notes { padding: 22px; }
 .other-fees { margin-left: 0; }
 .greeting { grid-template-columns: 1fr; gap: 26px; }
 .portrait { width: min(100%,300px); margin-inline: auto; }
 .office-table th { width: 87px; font-size: .875rem; padding: 12px 10px; }
 .office-table td { padding: 12px; }
 .access-grid iframe { min-height: 290px; }
 .access-copy { padding: 22px; }
 .contact-section { padding-block: 30px 50px; }
 .contact-panel { padding: 22px 18px; }
 .submit-row .button { min-width: 0; width: 100%; }
 .footer-grid { grid-template-columns: 1fr; gap: 18px; }
 .footer-grid .brand { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
