@charset "UTF-8";


/* すべてのWebページに適用される */
html {
  font-family: sans-serif;
}
html * {
       box-sizing: border-box;
}
body {
  margin: 0 0 0 0;
  background-color: #eeece9;
}
.wrapper {
  margin: 0 auto 0 auto;
  max-width: 960px;
}
h2 {
  color: #3f5170;
  font-size: 22px;
  border-bottom: 3px dotted #3f5170;
  margin-top: 20px;
  margin-right: 0px;
  margin-bottom: 20px;
  margin-left: 0px;
  padding-top: 5px;
  padding-right: 5px;
  padding-bottom: 5px;
  padding-left: 5px;
}
p {
  line-height: 1.3;
}
a:link {
       color: #d25833;
}
a:visited {
       color: #d25833;
}
a:hover {
       color: #e3937a;
}
a:active {
       color: #ff6a3b;
}
img {
  max-width: 100%;
  height: auto;
}

/* すべてのページに適用 - ヘッダー - */
.logo {
  margin: 50px 0 40px 0;
  line-height: 0;
  text-align: center;
}
.nav li {
  display: inline;
  list-style-type: none;
  padding-right: 30px;
}
/* ↓メニューバーの上の背景画像ラインのやつ(自分のやつは無しに設定中) */
.nav ul {
        margin: 0 0 0 0;
        padding: 0px 0px 10px 0px;
        background-image: url(../images/k.jpg);
        background-repeat: repeat-x;
}
/* メニューリンク色↓ */
.nav a:link {
  color: #3c454d;
  text-decoration: none;
}
.nav a:visited {
  color: #3c454d;
  text-decoration: none;
}
.nav a:hover {
  color: #7b8dac;
  text-decoration: none;
}
.nav a:active {
  color: #5a9bc0;
  text-decoration: none;
}

/* すべてのページに適用 - フッター - */
.footer {
  background-image: url(../images/.jpg);
  background-repeat: no-repeat;
  margin-top: 30px;
  padding: 20px 15px 10px 15px;
  font-size: 12px;
  color: #3f5170;
}

/* 個別のスタイル */
/* index.html */
.keyvisual {
  margin: 15px 0 0 0;
}
/* 複数のニュース記事を上下に並べる場合の隙間の間隔 */
.news-item {
  margin: 10;
}

/* prof.html */
.prof-photo {
  float: left;
  padding: 0 1em 1em 0;
}
.clear {
  clear: both;
}

/* works.html */
.works-item {
  display: flex;
  border-bottom: 1px dashed #bec2c7;
  padding: 20px 8px;
}
.works-photo {
  margin-right: 16px;
  flex: 1 1 auto;
}
.works-text {
  flex: 0 0 336px;
}



/* contact.html CONTACTページの画像用 */
.contact {
  text-align: left;
}

/* contact.html */
form div {
  padding: 12px;
  border-bottom: 1px dashed #bec2c7;
}
select {
  width: 30em;
}
input[name="subject"] {
  width: 30em;
}
textarea {
  width: 30em;
  height: 6em;
}
input[type="submit"] {
  margin: 20px 0;
  width: 30em;
}

/* スマートフォン向けCSS */
@media (max-width: 767px){
/* 全体 - ナビゲーション */
.wrapper {
  margin: 0 8px;
}
.logo {
  margin: 30px 0;
}
.logo img {
  width: 220px;
}
.nav {
  background-color: #dfddda;
}
.nav li {
  display: block;
}

/* works.html - 横並び解除 */
.works-item {
  display: block;
}
.works-photo {
  margin-right: 0;
  width: 100%;
}
.works-text {
  width: 100%;
}

/* prof.html - 画像のパディングを調整 */
.prof-photo {
  padding-right: 0;
}

/* contact.html - フォーム */
select {
  width: 100%;
}
input[name="subject"] {
  width: 100%;
}
textarea {
  width: 100%;
}
input[type="submit"] {
  margin: 20px 0;
  width: 100%;
}
}



p1 {
  color: #3f5170;
  font-size: 13px;
}


p2 {
  color: #3f5170;
  font-size: 11px;
  line-height: 1;
}



p3 {
  color: #3f5170;
  font-size: 16px;
  line-height: 1;
}






h3 {
  color: #3f5170;
  font-size: 18px;
  border-bottom: px dotted #3f5170;
  margin-top: 20px;
  margin-right: 0px;
  margin-bottom: 20px;
  margin-left: 0px;
  padding-top: 5px;
  padding-right: 5px;
  padding-bottom: 5px;
  padding-left: 5px;
}





.gal {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 幅に応じて自動調整 */
gap: 10px; /* 画像間のスペース */
}

.gal img {
width: 100%;
height: auto;
object-fit: cover; /* コンテナに収めつつトリミング */
border-radius: 8px;
display: block; /* 画像下の余白を防ぐ */
}






