* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
    font-family: 'Noto Serif JP', 'Noto Sans JP', serif;
}

body {
  margin: 0;
  line-height: 1.6;
  font-family: 'Noto Serif JP', 'Noto Sans JP', serif;
  overflow-x: hidden;
}

/* ヘッダー */
header {
    background: #232833;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    height: 50px;
    top: 0;
    left: 0;
    z-index: 1000;
}

#headleft {
    flex-grow: 2;
    margin-right: auto;
    margin-top: 0px;
    margin-left: 15px;
}

#headleft img{
  width: 40px;
  height: 40px;
}

#container {
    display: flex;
    margin-right: 25px;
}

nav ul {
    list-style: none;
    display: flex;
    /* justify-content: center; */
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    /* padding: 10px; */
}

nav ul li a:hover {
    color: #0d47a1;
}

section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0px 20px;
  padding-bottom: 30px;
}

/* .s h2,h3,p,li,strong{
    text-align: center; 
} */
.s h2{
  font-size: 32px;
  margin: 10px 0px;
}

.sp{
  font-size: 14px;
  opacity: 0.6;
}

#top{
    display: flex;

}

#problemh2 {
    text-align: center;
}

#grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列均等 */
  gap: 20px;
}

#profile {
  border: 1px solid #191919;
  border-radius: 12px; /* 角丸 */
}

#profile {
  border: 1px solid #191919;
  border-radius: 12px; /* 角丸 */
}

#profile li{
  list-style: none;
}

#profile h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

#profile h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 18px;
}

#profile ul {
  padding-left: 20px;
}

.profile-block {
  background: #f5f5f5;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 20px;
  border-radius: 10px;
}

.hero {
  height: 700px;
  margin-top: 50px;
  background: url('../../img/asamiabout.webp') center/cover;
  object-fit: cover;
  color: white;
  display: flex;
  align-items: end;
}

.hero h1 {
  font-weight: 500;
  font-size: 60px;
}

.hero p {
  font-weight: 300;
  font-size: 30px;
  opacity: 0.9;
}

/* セクション全体 */
.flow {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
}

.flow-sub {
  font-size: 14px;
  opacity: 0.6;
}

.flow-title {
  font-size: 36px;
  margin: 10px 0;
}

.flow-desc {
  margin-bottom: 50px;
  opacity: 0.7;
}

/* 横並び */
.flow-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* カード */
.flow-item {
  width: 220px;
  padding: 30px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.icon {
  font-size: 30px;
  margin-bottom: 15px;
}

.flow-item h3 {
  margin-bottom: 10px;
}

.flow-item p {
  font-size: 14px;
  opacity: 0.7;
}

/* 矢印 */
.arrow {
  font-size: 24px;
  opacity: 0.5;
}

.line-link {
  color: #06C755;
  font-weight: bold;
  text-decoration: underline;
}

/* ===== グリッド ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

/* 全体 */
.case-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 50px;
}

/* 1つの事例 */
.case-item {
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd; /* 下線だけ */
}

/* ヘッダー */
.case-head {
  margin-bottom: 15px;
}

.case-tag {
  font-size: 14px;
  color: #666;
  letter-spacing: 1px;
}

.case-head h3 {
  font-size: 22px;
  margin-top: 5px;
}

/* 本文 */
.case-body p {
  margin-bottom: 10px;
  line-height: 1.7;
}


/* ===== カード ===== */
.card {
  background: #f8f8f8;
  padding: 25px;
  border-radius: 12px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ===== テキスト ===== */
p {
  margin-top: 20px;
}

ul {
  margin-top: 20px;
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
}

/* ===== 全体レイアウト ===== */
#ps-clean {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 20px;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 80px 1fr;
  gap: 80px;
}

/* 矢印 */
.ps-arrow {
  font-size: 70px;
  text-align: center;
  color: #ccc;
}

/* ===== 共通 ===== */
.ps-block h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.label {
  font-size: 12px;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 10px;
}

.desc {
  margin-top: 20px;
  line-height: 1.8;
  color: #444;
}

/* ===== PROBLEM ===== */
.problem {
  padding-right: 20px;
}

.problem-list {
  list-style: none;
  margin-top: 20px;
}

.problem-list li {
  padding-left: 20px;
  margin-bottom: 12px;
  position: relative;
  font-size: 16px;
}

.problem-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #aaa;
}

/* ===== SOLUTION ===== */
.solution {
  padding-left: 20px;
}

.lead {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* フロー全体 */
.os-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 50px 0;
  flex-wrap: wrap;
}

/* 各ステップ */
.os-step {
  width: 300px;
  text-align: center;
}

/* 番号 */
.step-number {
  display: inline-block;
  font-size: 22px;
  margin-bottom: 10px;
  color: #666;
  padding-bottom: 0px;
}

/* タイトル */
.os-step h3 {
  border-bottom: 2px solid #000;
  margin-right: 20px;
  padding-bottom: 0px;
  font-size: 22px;
  margin-bottom: 10px;
}

/* テキスト */
.os-step p {
  font-size: 14px;
  opacity: 0.8;
}

/* 矢印 */
.os-arrow {
  font-size: 24px;
  opacity: 0.5;
}

/* 下の文章 */
.result {
  text-align: center;
  margin-top: 30px;
  font-weight: 500;
}

.achitems {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 32px;
  justify-content: space-evenly;
}

.timeline {
  position: relative;
  max-width: 99%;
  margin: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  height: 2px;
  width: 100%;
  opacity: 0.7;
  background: #809bc0;
}

.number {
  width: 60px;
  font-size: 24px;
  font-weight: bold;
  color: #38bdf8;
}

.achcontent {
  padding-left: 20px;
}

.achcontent h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.lead {
  color: #94a3b8;
  margin-bottom: 12px;
}

.metrics div {
  margin-bottom: 6px;
  font-size: 14px;
}

.metrics span {
  font-size: 18px;
  font-weight: bold;
  color: #38bdf8;
}


/* ===== FLOW ===== */
.flow {
  text-align: center;
}

.flow-sub {
  letter-spacing: 3px;
  font-size: 12px;
  opacity: 0.6;
}

.flow-title {
  font-size: 32px;
  margin: 10px 0 20px;
}

.flow-desc {
  margin-bottom: 50px;
}

.flow-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.flow-item {
  background: #f5f5f5;
  padding: 25px;
  border-radius: 12px;
  width: 220px;
  transition: 0.3s;
}

.flow-item:hover {
  transform: translateY(-5px);
}

.icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.arrow {
  font-size: 24px;
}

/* ===== LINK ===== */
.line-link {
  color: #06c755;
  text-decoration: none;
  font-weight: bold;
}


#contact {
    width: 100%;
    min-height: 60vh;
    padding: 0;
    background-color: #fff;
}

/* フォーム */
.formtab {
    display: flex;
    gap: 7px;
    flex-direction: row;
}

.formtab > label {
    text-align: left;
    flex: 2;
}

.formtab > input {
    flex: 1;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    margin-top: 70px;
}

input, textarea {
    text-align: left;
    margin-bottom: 10px;
    padding: 5px;
    font-size: 16px;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
}

  /* モーダル本体 */
.modal-content {
    background: #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    overflow-y: auto;
    max-height: 80vh;
}

.modal h2 {
    text-align: center;
    margin-bottom: 20px;
}

.close-btn {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background: #111;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.policy-section {
    margin-bottom: 20px;
}

.policy-section h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.policy-section p {
    font-size: 14px;
    line-height: 1.6;
}

#openpolicy {
  background: #111;
  color: #FFF;
  padding: 10px 10px;
  margin: 10px 10px;
  border-radius: 12px;
}

#submit {
  background: #111;
  color: #FFF;
  padding: 10px 10px;
  margin: 10px 10px;
  border-radius: 12px;
}


@media screen and (max-width: 768px) {
    body, html {
        font-size: 13px;
    }

    section {
        margin: 10px auto;
    }

    .hero {
        height: 66vw;
        margin-top: 0px;
        background: url('../../img/asamiabout.webp') center/cover;
        object-fit: cover;
        color: white;
    }

    .hero h1{
        font-size: 20px;
    }

    .s h2{
        font-size: 20px;
        margin: 0px 0px;
    }

    .s p{
        font-size: 10px;
    }

    #profile{
       border: none;
    }

    #profile h3{
        font-size: 14px;
    }

    #profile h4{
        font-size: 12px;
    }

    #profile li{
        font-size: 10px;
    }

    #grid {
        display: grid;
        grid-template-columns: 1fr; 
        gap: 10px;
    }

    .hero p{
        font-size: 12px;
    }
    
    header {
        font-size: 5px;
    }

    #ps-clean {
        max-width: 1100px;
        margin: 0 auto;
        padding: 10px 10px;
        display: grid;
        align-items: center;
        grid-template-columns: 1fr 30px 1fr;
        gap: 10px;
    }

    .ps-arrow {
        font-size: 20px;
        text-align: center;
        color: #ccc;
    }

    #home > h1 {
        color: #D9D9D9;
        margin: 0 5px;
        text-align: left;
        font-size: 20px;
    }    

    #headleft {
        margin-right: auto;
        margin-left: 10px;
    }


    nav ul li {
        padding-top: 4px;
        margin: 0 5px;
    }

    nav ul li a {
        color: #D9D9D9;
        text-decoration: none;
        font-size: 12px;
        /* padding: 10px; */
    }

    
    .flow-wrapper {
        flex-direction: column; /* 縦並び */
    }

    .arrow {
        transform: rotate(90deg); /* ↓に変更 */
    }

    .flow-item {
        width: 90%;
    }
  
    .os-flow {
        flex-direction: column;
        margin: 20px 0;
        gap: 20px;
    }

    .step-number{
        font-size: 16px;
        padding-bottom: 1px;
        margin-bottom: 1px;
    }

    .os-step h3 {
        margin-right: 10px;
        font-size: 18px;
        padding-bottom: 1px;
        margin-bottom: 1px;
    }

    .os-step p {
        margin-top: 2px;
    }

    .os-arrow {
        font-size: 14px;
        transform: rotate(90deg);
    }
    .timeline::before {
        left: 15px;
    }

    .number {
        width: 40px;
        font-size: 18px;
    }

    .achitems {
        flex-direction: column;
        gap: 10px;
    }

    .achcontent {
        
        margin-left: 20px;
    }

    .achcontent h3 {
      font-size: 18px;
    }

    .achcontent p {
      font-size: 14px;
    }

    .achcontent span {
      font-size: 12px;
    }

    .timeline::before {
        left: 20px;
        top: 0px;
        height: 100%;
        width: 2px;
        opacity: 0.7;
        background: #334155;
    }

    .ps-clean {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .ps-block h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .problem {
        margin-right: 0px;
        padding-bottom: 10px;
    }

    .problem-list {
        text-align: left;
        list-style: decimal;
        margin-top: 10px;
    }

    .problem-list li {
        padding-left: 0px;
        margin-bottom: 7px;
        position: relative;
        font-size: 10px;
    }

    .problem-list li::before {
      content: none;
    }

    .flow-sub{
      font-size: 10px;
    }

    .flow-title{
      font-size: 24px;
    }

    .flow-desc{
      font-size: 12px;
    }

    .flow-wrapper {
      flex-direction: column; /* 縦並び */
    }

    .flow-item{
       gap: 1px;
    }

        /* カード */
    .flow-item {
      padding: 10px 10px;
    }

    
    .icon {
      font-size: 25px;
      margin-bottom: 5px;
    }

    .flow-item h3 {
      margin-bottom: 5px;
    }

    .flow-item p {
      font-size: 13px;
    }

    #contact {
        min-height: 50vh;
    }

    form {
        display: flex;
        flex-direction: column;
        max-width: 340px;
        margin: 7px auto;
        margin-top: 30px;
    }
    
    input, textarea {
        text-align: left;
        margin-bottom: 2px;
        padding: 5px;
        font-size: 10px;
    }
}

@media (max-width: 768px) {

  header {
   background: none;
  }
  #container {
    position: fixed;
    top: -10px;
    right: -120vw;
    width: 50vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    transition: 0.4s;
    z-index: 100;
  }

  #headleft img {
    display: none;
  }

  #container.open {
    right: -30px;
  }

  #headright{
    margin-top: 100px;
    margin-right: 30px;
  }
  nav ul {
    display: flex;
    flex-direction: column; /* ← 縦並び */
    align-items: flex-start; /* ← 左寄せ */
  }

  nav ul li a {
    color: #111;
    text-decoration: none;
    font-size: 20px;
    /* padding: 10px; */
  }

  /* ハンバーガー */
  header::before {
    content: "";
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 20px;
    z-index: 99999;
    cursor: pointer;

    background:
      linear-gradient(#000, #333) 0 0 / 100% 1px no-repeat,
      linear-gradient(#000, #333) 0 50% / 100% 1px no-repeat,
      linear-gradient(#000, #333) 0 100% / 100% 1px no-repeat;
  }
}



/* フッター */
footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}