@charset "UTF-8";


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 

}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: sans-serif;
    background-color: #f5f5f7;
    color: #333;
}


.main-visual {
    height: 60vw; 
    background-size: cover;
    background-position: center;
    background-image: url(../images/teineyama.jpg);
}

header {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 2% 6%;
    position: sticky;
    top: 0px;
    z-index: 100;
}

header h1 {
    width: fit-content;
}

header h1 a {
    text-decoration: none;
    color: #a9a9a9;
    font-size: 2vw;
}

header nav {
    width: 30%;
}

header nav ul {
    display: flex;
    justify-content: space-between;
    list-style-type: none;
}

header nav ul li {
    width: calc(100% / 3);
}

header nav ul li a {
    display: block;
    line-height: 2.8;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.6vw;
}

main {
    display: block;    
    max-width: 865px;
    width: 80%; 
    margin: 0 auto;    
    padding-bottom: 100px;
}

h2 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
    margin-top: 60px;    /* 各セクションの上の余白 */
    font-size: 1.3rem;
  
    color: #a9a9a9;
}

.grid-container {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;          
    margin-top: 20px;
    align-items: stretch;
}

/* 全作品ホバーで浮き上がる */
.work-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px; 
    /* ★★角丸にしたければborder-radius: 0px;0を12px
    直角にしたければ0px */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    cursor: pointer;
}

.work-item:hover {
    transform: translateY(-8px); 
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); 
}

/* カードの中の画像サイズ調整 */
.work-item img {
    width: 100%;
    object-fit: contain;
    background-color: #fafafa;
    border-radius: 0px;
        /* ★★角丸にしたければborder-radius: 0を8px;
        直角にしたければ0px*/
    transition: opacity 0.3s ease;
}

.work-item:hover img {
    opacity: 0.9;
}

.work-item p {
    margin: 12px 0 0 0;
    font-size: 16px;
    font-weight: bold;
    color: #a9a9a9;
}

/* 各セクションの横並び（グリッド）個別最適化
全体共通のグリッド設定（基本はすべて3列横並び） */
.grid-container {
    display: grid; 
    grid-template-columns: repeat(3, 1fr) !important; /* 強制的に3列横並び */
    gap: 12px;
    margin-top: 20px;
}

/*  ロゴセクション（3列横並び・正方形に近い比率） */
#logo-design .work-item img {
    height: 250px; 
}

/* 名刺セクション（3列横並び・スマートな横長） */
#business-card .work-item img {
    height: 180px; 
}

/* Webバナーセクション（3列横並び・平べったい横長） */
#web-banner .work-item img {
    height: 160px; 
}

/*  ポスターセクション（3列横並び・縦長と横長を個別調整） */
/* 基本はすべて縦長ポスター用の高さ */
#poster-design .work-item img {
    height: 420px; 
}

/* 5番目Teapartyポスターは横長なので、高さを低く自動調整 */
#poster-design .work-item:nth-child(5) img {
    height: 240px;
}

* カフェサイト センターに1つ配置） */
.grid-container.cafe-container {
/* 3列グリッドを解除してFlexboxにする */
    display: flex !important;         
    justify-content: center;         
}
.cafe-container .work-item {
    width: 865px;                    
    max-width: 100%;        
}
.cafe-container .work-item img {
    width: 100%; 
/* 【変更】高さを固定せず、見切れないように自動調整する */         
    height: auto !important;          
}

footer {
    width: 100%; 
    padding: 4% 6%;
    background-color: darkgrey;
    color: #ffffff;
}

.parent {
    display: flex;
    justify-content: center; 
}

.footer-box3 {
    text-align: center;
}

.footer-address {
    font-style: normal; 
    line-height: 1.6; 
    text-align: center;
    margin-bottom: 20px;
}

.footer-address .first-line {
    margin-bottom: 10px; 
    font-size: 18px;
}

/* SNSアイコンの装飾と余白設定 */
.sns-icons {
    margin-top: 10px;
}

.sns-icons i {
    color: #ffffff;
    font-size: 24px;
    margin: 0 10px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.sns-icons i:hover {
    opacity: 0.7;
}

/* YouTube埋め込み位置調整 */
footer iframe {
    max-width: 100%;
    border: none;
}

footer p {
    text-align: center;
    font-size: 14px;
    color: #ffffff;
    margin-top: 20px;
}