@charset "UTF-8";
:root {
    --ymw-blue: #0057B8;
    --ymw-blue-700: #004799;
    --ymw-blue-50: #eaf2fb;
    --ink: #0b1220;
    --muted: #5a6b85;
    --bg: #ffffff;
    --card: #f7f9fc;
    --accent: #0ea5e9;
    --radius: 10px;
    --shadow: 0 10px 24px rgba(0, 0, 0, .08);
}
* {
    box-sizing: border-box
}
html, body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, "Hiragino Kaku Gothic ProN", "Yu Gothic", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

section {
  scroll-margin-top: 60px; /* 固定ヘッダーの高さに合わせて調整 */
}

a {
    color: var(--ymw-blue);
    text-decoration: none
}
a:hover {
    opacity: .9
}
.container {
    width: min(1100px, 92%);
    margin-inline: auto
}
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #eef2f7
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0
}
.brand {
    display: flex;
    gap: 10px;
    align-items: center
}
.logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--ymw-blue), var(--accent));
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700
}
.brand h1 {
    font-size: 18px;
    margin: 0;
    letter-spacing: .04em
}
.menu {
    display: flex;
    gap: 18px
}
.menu a {
    font-size: 16px;
    color: #2b3d57;
    padding: 0.5em;
}

.menu a:hover {
 border-bottom: 1px solid #0057b8;
}


.menu-toggle {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(1000px 400px at right -80% top -40%, var(--ymw-blue-50), transparent 60%),
        radial-gradient(900px 500px at left -40% bottom -60%, #e6f7ff, transparent 60%);
    padding: 64px 0 32px;
    overflow: hidden
}
/*.hero .container{display:grid;grid-template-columns: 1.2fr 1fr;gap:40px;align-items:center}*/
.hero {
    height: 60vh;
    background: var(--ymw-blue);
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .12), transparent 20%), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, .15), transparent 20%);
    /*background-image:url('img/key_visual.png');
      background-position:right;
      background-repeat:no-repeat;
      background-size:70%;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*text-align:center;*/
    color: #fff;
    position: relative;
    overflow: hidden;
}
/*.hero h2 {text-shadow: 2px 2px 10px rgba(0,0,0,1.0) }*/
.hero h2 {
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2)
}
.hero p {
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 1.0)
}
/*.hero::before {
      content:"";
      position:absolute;
      inset:0;
      background: linear-gradient(135deg, rgba(0,0,0,0.2), rgba(0,0,0,0.1));
    }*/
.hero .container {}
.eyebrow {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--ymw-blue-50);
    color: var(--ymw-blue-700);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em
}
h2.hero-title {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.25;
    margin: 14px 0
}
/*.hero p{color:var(--muted);font-size:15px}*/
.hero p {
    color: #fff;
    font-size: 15px
}
.cta {
    display: flex;
    gap: 12px;
    margin-top: 18px
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 700
}
.btn-primary {
    background: var(--ymw-blue);
    color: #fff;
    box-shadow: var(--shadow);
    text-align: center;
    border: #fff 2px solid;
}
.btn-outline {
    border-color: #d7e2f0;
    color: #2b3d57;
    background: #fff
}
.btn-inquiry {
    width: 70%;
    text-align: center;
    display: block;
    /*margin:0 auto;*/
}
/* Sections */
section {
    padding: 56px 0
}
/*.section-title{font-size:22px;margin:0 0 20px}*/
.section-title {
    font-size: clamp(20px, 4vw, 30px);
    margin: 0 0 20px;
    color: var(--ymw-blue);
}
.section-title {
    /*
        background-image: repeating-linear-gradient(-45deg,
            #aaa 0, #aaa 8px,
            transparent 8px, transparent 16px);
        background-repeat: no-repeat;
        background-position: left bottom;
        background-size: 100% 25%;
        */
    /*background: linear-gradient(transparent 70%, #eee 70%);*/
    border-bottom: solid 3px #87cefa;
    /*var(--ymw-blue-50);*/
    position: relative;
    padding-bottom: .4em;
}
.section-title:after {
    position: absolute;
    content: " ";
    display: block;
    border-bottom: solid 3px var(--ymw-blue);
    bottom: -3px;
    width: 15%;
}
#services .card {
    xborder-radius: 0;
}
/*#skills .card{background:#f2f2f2;border-radius:0;box-shadow:none;}*/
#skills .card {
    background: #f0f8ff;
    border-radius: 0;
    box-shadow: none;
}
.grid {
    display: grid;
    gap: 18px
}
.grid.cols-3 {
    grid-template-columns: repeat(3, 1fr)
}
.grid.cols-2 {
    grid-template-columns: repeat(2, 1fr)
}
/*.card{background:var(--card);border:1px solid #e6eef8;border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}*/
.card {
    background: var(--card);
    border: 1px solid #e6eef8;
    border-radius: 2px;
    padding: 18px;
    box-shadow: var(--shadow)
}
.card h3 {
    margin: 6px 0 12px;
    font-size: 20px
}
.chip {
    display: inline-block;
    border: 1px solid #d4e3f7;
    background: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 15px;
    color: #335
}
/* Feature list */
.list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    background-color
}
.list li {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: flex-start
}
/*.icon{width:20px;height:20px;flex:0 0 20px;color:var(--ymw-blue)}*/
.icon {
    width: 40px;
    height: 30px;
    flex: 0 0 30px;
    color: var(--ymw-blue)
}
/* Case cards */
.case-grid {
    grid-template-columns: repeat(3, 1fr)
}
.case-card {
    background: #fff;
    border: 1px solid #e6eef8;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 0
}
.case-card .media {
    background: linear-gradient(135deg, var(--ymw-blue), var(--accent));
}
.case-card .media .ph {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .22), transparent 40%), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, .15), transparent 50%);
	    text-align: center;
}
.case-card .case-meta {
    padding: 14px 16px 0
}
.case-card h3 {
    padding: 0 16px;
    margin: 4px 0 8px
}
.case-card p {
    padding: 0 16px;
    color: var(--muted)
}
.case-card .list {
    padding: 0 16px 16px
}
.badge {
    display: inline-block;
    background: var(--ymw-blue-50);
    color: var(--ymw-blue-700);
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px
}

/* Flow */
.flow {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px
}
.step {
    background: #fff;
    border: 1px dashed var(--ymw-blue);
    border-radius: 14px;
    padding: 16px;
    text-align: center
}
.step h4 {
    margin: 6px 0 4px
}
.step {
    position: relative;
}
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -14px;
    /* グリッドのgap=16pxの中央寄せに近づける */
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid var(--ymw-blue);
    /* 青い矢印 */
    pointer-events: none;
}
/* Contact */
form {
    display: grid;
    gap: 12px
}
label {
    font-size: 14px;
    color: #2b3d57;
    font-weight: 700
}
input, textarea {
    width: 100%;
    padding: 12px 12px;
    border: 1px solid #d7e2f0;
    border-radius: 12px;
    font: inherit
}
textarea {
    min-height: 120px
}
.notice {
    font-size: 15px;
    color: #5a6b85
}
/* Footer */
footer {
    background: #0f1a2b;
    color: #dbe7ff
}
footer a {
    color: #dbe7ff;
    text-decoration: underline
}
/* ===== Utilities migrated from inline styles ===== */
.mt-8 {
    margin-top: 8px;
}
.link-plain {
    text-decoration: none;
    color: inherit;
    display: block;
}
.service-logo {
    height: auto;
    display: block;
	margin: 0 auto;
    padding: 0 0 1em 0;
}
.footer-row {
    text-align: center;
    font-size: 0.8em;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.back-to-top:hover {
  opacity: 1;
}
/* Responsive */
@media (max-width: 960px) {
    .hero .container {
        grid-template-columns: 1fr
    }
    .grid.cols-3 {
        grid-template-columns: 1fr 1fr
    }
    .flow {
        grid-template-columns: repeat(3, 1fr)
    }
    .flow .step:nth-child(3)::after {
        display: none;
    }

}
@media (max-width: 768px) {
.menu a {

    border-bottom: 1px solid #ccc;

}
.service-logo {
width:60%;
}
     .menu-toggle {
    display: block;
  }
span.menu-icon {
    font-size: 36px;
}
  .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 63px;
        background: white;
        padding: 1em;
        z-index: 1000;
        width: 100%;
        left: 0;
  }

  .menu.open {
    display: flex;
  }
    .grid.cols-2, .grid.cols-3 {
        grid-template-columns: 1fr
    }
    .flow {
        grid-template-columns: repeat(1, 1fr)
    }
    .flow .step:nth-child(3)::after {
        display: none;
    }
		.step:not(:last-child)::after {
    display:none;
}
}